From: Yaakov Selkowitz Date: Thu, 24 Jul 2014 13:17:33 +0000 (+0100) Subject: xmlconfig: Use program_invocation_short_name when building for cygwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d05f72d4c3e012dc102cb66faf435e512575d5a4;p=mesa.git 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 Reviewed-by: Jon TURNEY Reviewed-by: Brian Paul --- diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index 58d0e065650..ce376475c3e 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 # if (__FreeBSD_version >= 440000)