From 1181f522db0cccc119f3e1519dfdc58500bc5503 Mon Sep 17 00:00:00 2001 From: debian Date: Thu, 23 Sep 2010 22:34:36 -0400 Subject: [PATCH] only define _GNU_SOURCE once --- core/amci/amci.h | 4 +++- core/log.h | 4 +++- core/plug-in/g729/g729.c | 4 +--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/amci/amci.h b/core/amci/amci.h index 0d68a27f..82008b31 100644 --- a/core/amci/amci.h +++ b/core/amci/amci.h @@ -36,7 +36,9 @@ extern "C" { #endif #ifdef __linux -#define _GNU_SOURCE +# ifndef _GNU_SOURCE +# define _GNU_SOURCE +# endif #endif #include diff --git a/core/log.h b/core/log.h index 9d16be6a..b32bc0d1 100644 --- a/core/log.h +++ b/core/log.h @@ -67,7 +67,9 @@ enum Log_Level { #endif #ifdef __linux -# define _GNU_SOURCE +# ifndef _GNU_SOURCE +# define _GNU_SOURCE +# endif # include # include # define GET_PID() syscall(__NR_gettid) diff --git a/core/plug-in/g729/g729.c b/core/plug-in/g729/g729.c index f0435a80..94dae7f3 100644 --- a/core/plug-in/g729/g729.c +++ b/core/plug-in/g729/g729.c @@ -36,12 +36,10 @@ */ #ifndef TEST -#define _GNU_SOURCE -#include +#include "../../log.h" #include #include "amci.h" #include "codecs.h" -#include "../../log.h" #else #include #define ERROR printf