Skip to content

Commit

Permalink
xmlconfig: Use program_invocation_short_name when building for cygwin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yselkowitz authored and jon-turney committed Jul 29, 2014
1 parent 448f149 commit d05f72d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mesa/drivers/dri/common/xmlconfig.c
Expand Up @@ -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)
Expand Down

0 comments on commit d05f72d

Please sign in to comment.