summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2017-03-20 16:04:41 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-03-22 16:55:23 +0000
commite0129f314269b61ec80b3bf39d0a71ca80286e2e (patch)
tree6483ff3290434f65f488d0089f50da10c73bc57c /src/util
parente325fc12dbdea2a0fdf10b279be39cf15cf2ca8b (diff)
util/strndup: move header inclusion as applicable
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Vedran Miletić <vedran@miletic.net> Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Diffstat (limited to 'src/util')
-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