mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Some compilers have issue with ! signs (nw)
This commit is contained in:
parent
8eb93098ed
commit
489bfb979e
@ -26,11 +26,11 @@ int core_stricmp(const char *s1, const char *s2);
|
||||
|
||||
/* this macro prevents people from using stricmp directly */
|
||||
#undef stricmp
|
||||
#define stricmp !MUST_USE_CORE_STRICMP_INSTEAD!
|
||||
#define stricmp MUST_USE_CORE_STRICMP_INSTEAD
|
||||
|
||||
/* this macro prevents people from using strcasecmp directly */
|
||||
#undef strcasecmp
|
||||
#define strcasecmp !MUST_USE_CORE_STRICMP_INSTEAD!
|
||||
#define strcasecmp MUST_USE_CORE_STRICMP_INSTEAD
|
||||
|
||||
|
||||
/* since strnicmp is not part of the standard, we use this instead */
|
||||
@ -38,11 +38,11 @@ int core_strnicmp(const char *s1, const char *s2, size_t n);
|
||||
|
||||
/* this macro prevents people from using strnicmp directly */
|
||||
#undef strnicmp
|
||||
#define strnicmp !MUST_USE_CORE_STRNICMP_INSTEAD!
|
||||
#define strnicmp MUST_USE_CORE_STRNICMP_INSTEAD
|
||||
|
||||
/* this macro prevents people from using strncasecmp directly */
|
||||
#undef strncasecmp
|
||||
#define strncasecmp !MUST_USE_CORE_STRNICMP_INSTEAD!
|
||||
#define strncasecmp MUST_USE_CORE_STRNICMP_INSTEAD
|
||||
|
||||
|
||||
/* since strdup is not part of the standard, we use this instead - free with osd_free() */
|
||||
@ -50,7 +50,7 @@ char *core_strdup(const char *str);
|
||||
|
||||
/* this macro prevents people from using strdup directly */
|
||||
#undef strdup
|
||||
#define strdup !MUST_USE_CORE_STRDUP_INSTEAD!
|
||||
#define strdup MUST_USE_CORE_STRDUP_INSTEAD
|
||||
|
||||
|
||||
/* additional string compare helper (up to 16 characters at the moment) */
|
||||
|
Loading…
Reference in New Issue
Block a user