Browse Source

_XOPEN_SOURCE macro is now set via compiler commandline option

feature/2015
Christian Kroll 14 years ago
parent
commit
fa820f9dd7
  1. 2
      scrolltext/scrolltext3.c
  2. 1
      simulator/main.c
  3. 2
      simulator/util.c

2
scrolltext/scrolltext3.c

@ -1,7 +1,5 @@
#define SCROLLTEXT_C #define SCROLLTEXT_C
#define _XOPEN_SOURCE 600
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <setjmp.h> #include <setjmp.h>

1
simulator/main.c

@ -4,7 +4,6 @@
#include <process.h> #include <process.h>
#define pthread_t int #define pthread_t int
#else #else
#define _XOPEN_SOURCE 500
#ifdef OSX_ #ifdef OSX_
#include <GLUT/glut.h> #include <GLUT/glut.h>
#else #else

2
simulator/util.c

@ -1,7 +1,5 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#else
#define _XOPEN_SOURCE 500
#endif #endif
#include <stdlib.h> #include <stdlib.h>

Loading…
Cancel
Save