diff options
author | Peter Johnson <peter@tortall.net> | 2006-01-11 05:51:32 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2006-01-11 05:51:32 +0000 |
commit | aa81c64488ba4642b6f9edd0c23ba98a3d705183 (patch) | |
tree | 292d77a8321916391cfe73a86c348b12dba5e595 /util.h | |
parent | e064146e44abd54fdfa990da1a608200050efe98 (diff) | |
download | yasm-aa81c64488ba4642b6f9edd0c23ba98a3d705183.tar.gz |
Build cleanups (mostly for warnings) for VC8.
* Mkfiles/vc8/config.h: Define _CRT_SECURE_NO_DEPRECATE to avoid most warnings about *_s functions.
Also use _stricmp directly instead of stricmp to avoid warnings.
* libyasm/strcasecmp.c: Support _stricmp usage.
* util.h: Likewise.
* tools/re2c/actions.c: Include ctype.h to define toupper/tolower.
* Mkfiles/vc8/modules/modules.vcproj: Don't include nasm-macros.c directly; this file is included
into another file and has no public variables.
* Mkfiles/vc8/yasm.sln: Allow x64 cross-builds from Win32 by building genmacro, genmodule, and
re2c for Win32 target.
svn path=/trunk/yasm/; revision=1328
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -102,6 +102,9 @@ #elif HAVE_STRICMP # define yasm__strcasecmp(x, y) stricmp(x, y) # define yasm__strncasecmp(x, y, n) strnicmp(x, y, n) +#elif HAVE__STRICMP +# define yasm__strcasecmp(x, y) _stricmp(x, y) +# define yasm__strncasecmp(x, y, n) _strnicmp(x, y, n) #elif HAVE_STRCMPI # define yasm__strcasecmp(x, y) strcmpi(x, y) # define yasm__strncasecmp(x, y, n) strncmpi(x, y, n) |