0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

Windows portability fixes

Windows needs strsep() and defines a P_WAIT constant that we
need to undefine.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin
2016-02-18 14:40:37 -08:00
parent e65e81b172
commit 73b22f5c1c
2 changed files with 5 additions and 1 deletions

4
nasm.h
View File

@@ -479,6 +479,10 @@ enum vex_class {
* prefixes, we must ensure the enumerations for prefixes and
* register names do not overlap.
*/
#ifdef P_WAIT
# undef P_WAIT /* Macro defined on some Windows versions */
#endif
enum prefixes { /* instruction prefixes */
P_none = 0,
PREFIX_ENUM_START = REG_ENUM_LIMIT,