From b7192b694cc2b6405be570b35bf1b4fc5317930e Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Wed, 26 Jan 2022 11:30:34 -0800 Subject: Move _POSIX_C_SOURCE define before first stdlib.h include in zbuild.h for posix_memalign. --- test/switchlevels.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/switchlevels.c') diff --git a/test/switchlevels.c b/test/switchlevels.c index 1e1fb00a5c..a065dbcff0 100644 --- a/test/switchlevels.c +++ b/test/switchlevels.c @@ -2,8 +2,6 @@ * Each chunk is compressed with a user-specified level. */ -#define _POSIX_SOURCE 1 /* This file needs POSIX for fileno(). */ - #include "zbuild.h" #ifdef ZLIB_COMPAT # include "zlib.h" @@ -12,8 +10,6 @@ #endif #include -#include -#include #if defined(_WIN32) || defined(__CYGWIN__) # include -- cgit 0.0.5-2-1-g0f52