Added support to the unix build system for explicitely specifying the name of
the define to set to show when a symbol is found. Also a fix for when 'strcasecmp' is #define'd by the system. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2881 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+10
-2
@@ -45,12 +45,20 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRICMP
|
||||
// Using "HAVE_STRCASECMP_UQM" instead of "HAVE_STRCASECMP" as the latter
|
||||
// conflicts with SDL.
|
||||
#if !defined(HAVE_STRICMP) && !defined(HAVE_STRCASECMP_UQM)
|
||||
# error Neither stricmp() nor strcasecmp() is available.
|
||||
#elif defined(HAVE_STRCASECMP_UQM)
|
||||
# define stricmp strcasecmp
|
||||
#else
|
||||
#elif defined(HAVE_STRICMP)
|
||||
# define strcasecmp stricmp
|
||||
#else
|
||||
// We should take care not to define anything if both strcasecmp() and
|
||||
// stricmp() are defined, as one might exist as a macro to the other.
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef HAVE_STRUPR
|
||||
char *strupr (char *str);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user