summaryrefslogtreecommitdiff
path: root/test/switchlevels.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2022-01-26 11:30:34 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2022-01-29 17:03:22 +0100
commitb7192b694cc2b6405be570b35bf1b4fc5317930e (patch)
tree3e15020c9efb173f3f4aeb292c5ac25d95b0a72a /test/switchlevels.c
parentab0a6d9fa75c004fa8db569af5043504fdfad68f (diff)
downloadProject-Tick-b7192b694cc2b6405be570b35bf1b4fc5317930e.tar.gz
Project-Tick-b7192b694cc2b6405be570b35bf1b4fc5317930e.zip
Move _POSIX_C_SOURCE define before first stdlib.h include in zbuild.h for posix_memalign.
Diffstat (limited to 'test/switchlevels.c')
-rw-r--r--test/switchlevels.c4
1 files changed, 0 insertions, 4 deletions
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 <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#if defined(_WIN32) || defined(__CYGWIN__)
# include <fcntl.h>