diff options
author | Peter Johnson <peter@tortall.net> | 2003-03-08 20:35:36 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2003-03-08 20:35:36 +0000 |
commit | 9d0fa1135cd4629cd5be0b4861331945681cdf6f (patch) | |
tree | 1a2853de4d3a21c88dac56945b3dbd6020f50a51 /util.h | |
parent | 854ea00a2b6bb18e0e574258d824608c7aa4fef2 (diff) | |
download | yasm-9d0fa1135cd4629cd5be0b4861331945681cdf6f.tar.gz |
The Great Renaming, Part 2: prefix strcasecmp and strncasecmp with yasm__.
svn path=/trunk/yasm/; revision=841
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -82,21 +82,24 @@ int mergesort(void *base, size_t nmemb, size_t size, /*@null@*/ char *strsep(char **stringp, const char *delim); #endif -#ifndef HAVE_STRCASECMP +#ifdef HAVE_STRCASECMP +# define yasm__strcasecmp(x, y) strcasecmp(x, y) +# define yasm__strncasecmp(x, y) strncasecmp(x, y) +#else # ifdef HAVE_STRICMP -# define strcasecmp(x, y) stricmp(x, y) -# define strncasecmp(x, y) strnicmp(x, y) +# define yasm__strcasecmp(x, y) stricmp(x, y) +# define yasm__strncasecmp(x, y) strnicmp(x, y) # elif HAVE_STRCMPI -# define strcasecmp(x, y) strcmpi(x, y) -# define strncasecmp(x, y) strncmpi(x, y) +# define yasm__strcasecmp(x, y) strcmpi(x, y) +# define yasm__strncasecmp(x, y) strncmpi(x, y) # else # define USE_OUR_OWN_STRCASECMP # endif #endif #if defined(USE_OUR_OWN_STRCASECMP) || defined(lint) -int strcasecmp(const char *s1, const char *s2); -int strncasecmp(const char *s1, const char *s2, size_t n); +int yasm__strcasecmp(const char *s1, const char *s2); +int yasm__strncasecmp(const char *s1, const char *s2, size_t n); #endif #if !defined(HAVE_TOASCII) || defined(lint) |