NAME := ${NAME}
SRC = ${NAME}.c
OBJ = $(SRC:.c=.o)
-CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og
+CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og -D_GNU_SOURCE
# os specific
ifeq ($(shell uname), Darwin)
-#include <stdlib.h>
-#include <unistd.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-fork { <<< __func__ >>>; } => var Fork f;
+fork { <<< __func__ >>>; } :=> var Fork f;
second => now;
f.join();
NAME := ${NAME}
SRC = ${NAME}.c
OBJ = $(SRC:.c=.o)
-CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og
+CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og -D_GNU_SOURCE
# os specific
ifeq ($(shell uname), Darwin)
-#include <stdlib.h>
-#include <unistd.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <unistd.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
NAME := ${NAME}
SRC = ${NAME}.c
OBJ = $(SRC:.c=.o)
-CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og
+CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og -D_GNU_SOURCE
# os specific
ifeq ($(shell uname), Darwin)
#include "gwi.h"
#include "compile.h"
-#define _XOPEN_SOURCE 500
#include <string.h>
GWION_IMPORT(compile_file) {
DECL_OB(FILE *, file, = fopen("rm_me.gw", "w+"));
#include "gwi.h"
#include "compile.h"
-#define _XOPEN_SOURCE 500
#include <string.h>
GWION_IMPORT(compile_string) {
return compile_string(gwi->gwion, __FILE__, "1;") ? GW_OK : GW_ERROR;
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
-#include <stdlib.h>
-#include <math.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"