Mesa (master): xmlconfig: Use program_invocation_short_name when building for cygwin

Jon TURNEY jturney at kemper.freedesktop.org
Tue Jul 29 16:54:26 UTC 2014


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

Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date:   Thu Jul 24 14:17:33 2014 +0100

xmlconfig: Use program_invocation_short_name when building for cygwin

mesa/mesa/src/mesa/drivers/dri/common/xmlconfig.c:104:10: warning: #warning "Per application configuration won't work with your OS version." [-Wcpp]
 #        warning "Per application configuration won't work with your OS version."

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/drivers/dri/common/xmlconfig.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 58d0e06..ce37647 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -45,6 +45,8 @@
 extern char *program_invocation_name, *program_invocation_short_name;
 #    endif
 #    define GET_PROGRAM_NAME() program_invocation_short_name
+#elif defined(__CYGWIN__)
+#    define GET_PROGRAM_NAME() program_invocation_short_name
 #elif defined(__FreeBSD__) && (__FreeBSD__ >= 2)
 #    include <osreldate.h>
 #    if (__FreeBSD_version >= 440000)




More information about the mesa-commit mailing list