[Mesa-dev] [PATCH] Util: fix msvc build

Benedikt Schemmer ben at besd.de
Thu Jul 5 07:49:15 UTC 2018


The MSVC preprocessor doesnt understand #warning

---
 src/util/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/process.c b/src/util/process.c
index 449c7fa77c2..6e6376986f3 100644
--- a/src/util/process.c
+++ b/src/util/process.c
@@ -107,7 +107,7 @@ __getProgramName()
 #        define GET_PROGRAM_NAME() __getProgramName()
 #    else
 #        define GET_PROGRAM_NAME() ""
-#        warning "Per application configuration won't work with your OS version."
+#        pragma message ( "Warning: Per application configuration won't work with your OS version." )
 #    endif
 #endif

-- 
2.17.1


More information about the mesa-dev mailing list