I'm trying to convert this C++ code into asm


#if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400)


I know I can use IFDEF like #ifdef, but how can I use IFDEF with multiple symbols? Maybe with nested IFDEF?
Posted on 2004-11-04 11:56:55 by greenant
IFDEF _WIN32_WINNT

IF _WIN32_WINNT GT 0400h
IF WINVER LT 0400h



ENDIF ; WINVER LT 0400h
ENDIF ; _WIN32_WINNT GT 0400h
ENDIF ; DEF _WIN32_WINNT
This is how I do it.
Posted on 2004-11-04 12:08:13 by bitRAKE
Thanks, another question.
What is the best for
#define symbol


I use
symbol EQU 1
Posted on 2004-11-04 12:10:56 by greenant
Anything works really.

symbol EQU <>

...if you can't pick something. :)

IIRC, it is funny that "PURGE symbol" even works to define the symbol. :lol:
Posted on 2004-11-04 12:28:35 by bitRAKE