Improvement from @inikep
This commit is contained in:
parent
545987996a
commit
d08019813b
@ -77,11 +77,10 @@ extern "C" {
|
|||||||
# define PLATFORM_POSIX_VERSION 200112L
|
# define PLATFORM_POSIX_VERSION 200112L
|
||||||
# else
|
# else
|
||||||
# if defined(__linux__) || defined(__linux)
|
# if defined(__linux__) || defined(__linux)
|
||||||
# ifdef _POSIX_C_SOURCE
|
# ifndef _POSIX_C_SOURCE
|
||||||
# undef _POSIX_C_SOURCE
|
|
||||||
# endif
|
|
||||||
# define _POSIX_C_SOURCE 200112L /* use feature test macro */
|
# define _POSIX_C_SOURCE 200112L /* use feature test macro */
|
||||||
# endif
|
# endif
|
||||||
|
# endif
|
||||||
# include <unistd.h> /* declares _POSIX_VERSION */
|
# include <unistd.h> /* declares _POSIX_VERSION */
|
||||||
# if defined(_POSIX_VERSION) /* POSIX compliant */
|
# if defined(_POSIX_VERSION) /* POSIX compliant */
|
||||||
# define PLATFORM_POSIX_VERSION _POSIX_VERSION
|
# define PLATFORM_POSIX_VERSION _POSIX_VERSION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user