summaryrefslogtreecommitdiffstats
path: root/src/util/strndup.h
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-03-20 16:04:41 +0000
committerEmil Velikov <[email protected]>2017-03-22 16:55:23 +0000
commite0129f314269b61ec80b3bf39d0a71ca80286e2e (patch)
tree6483ff3290434f65f488d0089f50da10c73bc57c /src/util/strndup.h
parente325fc12dbdea2a0fdf10b279be39cf15cf2ca8b (diff)
util/strndup: move header inclusion as applicable
Signed-off-by: Emil Velikov <[email protected]> Acked-by: Vedran Miletić <[email protected]> Acked-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/util/strndup.h')
-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