Skip to content

Commit

Permalink
Remove feature test macros from qcommon.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Kangz committed Oct 24, 2014
1 parent 5a219bc commit a7e1c9b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/engine/qcommon/q_shared.h
Expand Up @@ -87,21 +87,6 @@ typedef int intptr_t;

#define EXTERN_C extern "C"

// for visibility of some functions in system headers
#undef _GNU_SOURCE
#undef _BSD_SOURCE
#undef _XOPEN_SOURCE_EXTENDED
#define _GNU_SOURCE
#define _BSD_SOURCE
#define _XOPEN_SOURCE_EXTENDED
#if !(defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__))
// defining the following breaks things on BSD-esque OSes
#undef _XOPEN_SOURCE
#undef _POSIX_C_SOURCE
#define _XOPEN_SOURCE 500
#define _POSIX_C_SOURCE 200112L
#endif

// C standard library headers
#include <assert.h>
#include <ctype.h>
Expand Down

0 comments on commit a7e1c9b

Please sign in to comment.