mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +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 */
|
/* this macro prevents people from using stricmp directly */
|
||||||
#undef stricmp
|
#undef stricmp
|
||||||
#define stricmp !MUST_USE_CORE_STRICMP_INSTEAD!
|
#define stricmp MUST_USE_CORE_STRICMP_INSTEAD
|
||||||
|
|
||||||
/* this macro prevents people from using strcasecmp directly */
|
/* this macro prevents people from using strcasecmp directly */
|
||||||
#undef strcasecmp
|
#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 */
|
/* 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 */
|
/* this macro prevents people from using strnicmp directly */
|
||||||
#undef strnicmp
|
#undef strnicmp
|
||||||
#define strnicmp !MUST_USE_CORE_STRNICMP_INSTEAD!
|
#define strnicmp MUST_USE_CORE_STRNICMP_INSTEAD
|
||||||
|
|
||||||
/* this macro prevents people from using strncasecmp directly */
|
/* this macro prevents people from using strncasecmp directly */
|
||||||
#undef strncasecmp
|
#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() */
|
/* 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 */
|
/* this macro prevents people from using strdup directly */
|
||||||
#undef strdup
|
#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) */
|
/* additional string compare helper (up to 16 characters at the moment) */
|
||||||
|
Loading…
Reference in New Issue
Block a user