From 8138d582ab92d79e4acd737744202fce868eca59 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Tue, 7 Feb 2023 16:25:33 +0800 Subject: [PATCH] define _GNU_SOURCE --- Makefile | 2 +- include/palerain.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8ab175c..b7bf9b7 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ STRIP = strip CC ?= cc CFLAGS += -I$(DEP)/include -I$(SRC)/include -I$(SRC) CFLAGS += -Wall -Wextra -DPALERAIN_VERSION=\"2.0.0\" -Wall -Wextra -Wno-unused-parameter -CFLAGS += -Wno-unused-variable -I$(SRC)/src -std=c99 -pedantic-errors +CFLAGS += -Wno-unused-variable -I$(SRC)/src -std=c99 -pedantic-errors -D_DARWIN_C_SOURCE -D_GNU_SOURCE LIBS += $(DEP)/lib/libimobiledevice-1.0.a $(DEP)/lib/libirecovery-1.0.a $(DEP)/lib/libusbmuxd-2.0.a LIBS += $(DEP)/lib/libimobiledevice-glue-1.0.a $(DEP)/lib/libplist-2.0.a -pthread ifeq ($(TARGET_OS),) diff --git a/include/palerain.h b/include/palerain.h index 119364c..4e17fdb 100644 --- a/include/palerain.h +++ b/include/palerain.h @@ -1,10 +1,6 @@ #ifndef PALERAIN_H #define PALERAIN_H -#if defined(__APPLE__) -#define _DARWIN_C_SOURCE 1 -#endif - #include "xxd-embedded.h" #include "kerninfo.h" #include