Mesa (master): util: #include "c99_compat.h" to fix Windows build

Brian Paul brianp at kemper.freedesktop.org
Mon Apr 3 19:21:51 UTC 2017


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Apr  3 08:44:10 2017 -0600

util: #include "c99_compat.h" to fix Windows build

Otherwise, we were getting the definition for 'inline' by chance from
some other preceeding #include.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

---

 src/util/list.h      | 1 +
 src/util/mesa-sha1.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/util/list.h b/src/util/list.h
index 07eb9f3e6a..6edb750110 100644
--- a/src/util/list.h
+++ b/src/util/list.h
@@ -41,6 +41,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <assert.h>
+#include "c99_compat.h"
 
 
 struct list_head
diff --git a/src/util/mesa-sha1.h b/src/util/mesa-sha1.h
index d3f7affece..bde50ba1eb 100644
--- a/src/util/mesa-sha1.h
+++ b/src/util/mesa-sha1.h
@@ -24,6 +24,7 @@
 #define MESA_SHA1_H
 
 #include <stdlib.h>
+#include "c99_compat.h"
 #include "sha1/sha1.h"
 
 #ifdef __cplusplus




More information about the mesa-commit mailing list