libretro-common: Fix redefinition warnings of _POSIX_C_SOURCE (#15748)
Small fix to only define `_POSIX_C_SOURCE` if it's not already defined. ``` rthreads/rthreads.c:25: warning: "_POSIX_C_SOURCE" redefined ```
This commit is contained in:
parent
ec8358c783
commit
395f925941
|
@ -22,9 +22,11 @@
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
#ifndef __sun__
|
#ifndef __sun__
|
||||||
|
#ifndef _POSIX_C_SOURCE
|
||||||
#define _POSIX_C_SOURCE 199309
|
#define _POSIX_C_SOURCE 199309
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in New Issue