on linux,define _GNU_SOURCE before including stdio

sayer/1.4-spce2.6
Stefan Sayer 16 years ago
parent e5680878be
commit 5c77aa56dc

@ -35,6 +35,9 @@
extern "C" {
#endif
#ifdef __linux
#define _GNU_SOURCE
#endif
#include <stdio.h>
/**

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

@ -17,14 +17,15 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <string.h>
#include <stdlib.h>
#include "amci.h"
#include "codecs.h"
#include "speex/speex.h"
#include "../../log.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
/* Speex constants */
#define SPEEX_FRAME_MS 20
#define SPEEX_NB_SAMPLES_PER_FRAME 160

Loading…
Cancel
Save