Util: fix msvc build
authorBenedikt Schemmer <ben@besd.de>
Thu, 5 Jul 2018 07:49:15 +0000 (09:49 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 5 Jul 2018 13:24:08 +0000 (14:24 +0100)
The MSVC preprocessor doesnt understand #warning

Fixes: 2e1e6511f76 ("util: extract get_process_name from xmlconfig.c")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/process.c

index 449c7fa77c2ac6cd16797fea5c26185b834477dc..6e6376986f31a2c14af3e903e9d7baac2cbb0b3e 100644 (file)
@@ -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