only define _GNU_SOURCE once

sayer/1.4-spce2.6
debian 16 years ago
parent 5c77aa56dc
commit 1181f522db

@ -36,7 +36,9 @@ extern "C" {
#endif
#ifdef __linux
#define _GNU_SOURCE
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
#endif
#include <stdio.h>

@ -67,7 +67,9 @@ enum Log_Level {
#endif
#ifdef __linux
# define _GNU_SOURCE
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
# include <linux/unistd.h>
# include <sys/syscall.h>
# define GET_PID() syscall(__NR_gettid)

@ -36,12 +36,10 @@
*/
#ifndef TEST
#define _GNU_SOURCE
#include <unistd.h>
#include "../../log.h"
#include <stdio.h>
#include "amci.h"
#include "codecs.h"
#include "../../log.h"
#else
#include <stdio.h>
#define ERROR printf

Loading…
Cancel
Save