mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Move _XOPEN_SOURCE macro to a more generic place (#2136)
Building with all-in-one and enabled debugger caused errors as the sleep functions were not defined. By moving the _XOPEN_SOURCE macro to a generic place we make sure that the required sleep functions are present in every case. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
parent
75ac090dd9
commit
8b109510fd
@ -13,8 +13,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define _XOPEN_SOURCE 500 /* Required macro for sleep functions */
|
||||
|
||||
#include "byte-code.h"
|
||||
#include "debugger.h"
|
||||
#include "ecma-builtin-helpers.h"
|
||||
|
||||
@ -16,6 +16,9 @@
|
||||
#ifndef JRT_H
|
||||
#define JRT_H
|
||||
|
||||
/* Required macro for sleep functions (nanosleep or usleep) */
|
||||
#define _XOPEN_SOURCE 500
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user