Mesa (master): util: include string.h in u_string.h

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 3 20:39:07 UTC 2017


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Oct  3 13:56:01 2017 -0600

util: include string.h in u_string.h

To fix MinGW compiler warning about missing strlen() prototype.
Not sure how I missed this when fixing the malloc() / stdlib.h issue.

Reviewed-by: Charmaine Lee <charmainel at vmware.com>

---

 src/util/u_string.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/u_string.h b/src/util/u_string.h
index 5a2a3e9817..fa0241e542 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -41,6 +41,7 @@
 #include <stdlib.h>
 #include <stddef.h>
 #include <stdarg.h>
+#include <string.h>
 
 #include "util/macros.h" // PRINTFLIKE
 




More information about the mesa-commit mailing list