summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/strndup.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/strndup.h b/src/util/strndup.h
index 6d1868370fd..dcaa429dbe8 100644
--- a/src/util/strndup.h
+++ b/src/util/strndup.h
@@ -24,10 +24,9 @@
#ifndef STRNDUP_H
#define STRNDUP_H
-#include <stdlib.h> // size_t
-
#if defined(_WIN32)
+#include <stdlib.h> // size_t
#include <string.h>
#ifdef __cplusplus