mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Set _POSIX_C_SOURCE
to 200112L. We need it for C99 compat.
It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application using c99. The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b, and POSIX.1c applications. Likewise, it is invalid to compile an XPG6 or a POSIX.1-2001 application with anything other than a c99 or later compiler. Therefore, Solaris libc forces an error in both cases.
This commit is contained in:
parent
d6d305feeb
commit
9fb87056bc
|
@ -27,7 +27,7 @@
|
|||
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
// For nanosleep().
|
||||
#define _POSIX_C_SOURCE 199309L
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#endif
|
||||
|
||||
#include "misc_tools.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user