xmlconfig: Use program_invocation_short_name when building for cygwin
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Thu, 24 Jul 2014 13:17:33 +0000 (14:17 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 29 Jul 2014 16:52:57 +0000 (17:52 +0100)
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@users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/common/xmlconfig.c

index 58d0e0656505382a7def892d0fd1c7ed15025b20..ce376475c3ec7542af828694b0cbcb023b177eff 100644 (file)
@@ -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)