I am not sure I understand your question exactly but the "standard" (so to speak) way of doing this -- no need to define them yourselves, they are built in -- is
#ifdef WIN32 and #ifdef __MVS__ Note that everything in C is case-sensitive, and those are double underscores _ _ before and after MVS Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Joseph Reichman Sent: Sunday, September 22, 2019 9:45 PM To: [email protected] Subject: prceprocess directives XL C\C++ Hi Would anyone know where to specify pre-processor directives as said previously I am compiling code that runs on windows as well z/os So I have #ifdef ZOS AND #IFDEF MSVC I would think it would be when running the preprocessor As such EXEC PGM=CCNDRVR,REGION=0M,PARM=('PP(COMMENTS,NOLINES),ZOS') Doesn't seem to have taken thanks ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
