mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
#undef _POSIX_C_SOURCE if already defined
This commit is contained in:
@@ -77,6 +77,9 @@ 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
|
||||||
|
# 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
|
||||||
# include <unistd.h> /* declares _POSIX_VERSION */
|
# include <unistd.h> /* declares _POSIX_VERSION */
|
||||||
|
Reference in New Issue
Block a user