util/strndup: move header inclusion as applicable
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Mar 2017 16:04:41 +0000 (16:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 16:55:23 +0000 (16:55 +0000)
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>
src/util/strndup.h

index 6d1868370fd65906602ed3bcd63253a0fd196657..dcaa429dbe81b1b0fdb6d537972d93f41e73695e 100644 (file)
 #ifndef STRNDUP_H
 #define STRNDUP_H
 
-#include <stdlib.h> // size_t
-
 #if defined(_WIN32)
 
+#include <stdlib.h> // size_t
 #include <string.h>
 
 #ifdef __cplusplus