Mesa (master): util/strndup: move header inclusion as applicable

Emil Velikov evelikov at kemper.freedesktop.org
Wed Mar 22 16:59:32 UTC 2017


Module: Mesa
Branch: master
Commit: e0129f314269b61ec80b3bf39d0a71ca80286e2e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0129f314269b61ec80b3bf39d0a71ca80286e2e

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Mon Mar 20 16:04:41 2017 +0000

util/strndup: move header inclusion as applicable

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Acked-by: Vedran Miletić <vedran at miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

---

 src/util/strndup.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/strndup.h b/src/util/strndup.h
index 6d1868370f..dcaa429dbe 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




More information about the mesa-commit mailing list