mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
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__
|
||||
#ifndef __sun__
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 199309
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user