Skip to content

Commit

Permalink
libretro-common: Fix redefinition warnings of _POSIX_C_SOURCE (#15748)
Browse files Browse the repository at this point in the history
Small fix to only define `_POSIX_C_SOURCE` if it's not already defined.

```
rthreads/rthreads.c:25: warning: "_POSIX_C_SOURCE" redefined
```
  • Loading branch information
RobLoach committed May 16, 2024
1 parent ec8358c commit 395f925
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libretro-common/rthreads/rthreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 395f925

Please sign in to comment.