Thanks for your incredibly helpful answer. Stupid me -- I looked at "Appendix A. XL C/C++ Macros" in the library reference.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Sam Siegel Sent: Friday, February 14, 2014 3:57 PM To: [email protected] Subject: Re: Is there a C macro for "is z/OS" Macros as you suggest (slightly different names) should be fully documented in the c/c++ users guide or language reference. On Fri, Feb 14, 2014 at 3:14 PM, Charles Mills <[email protected]> wrote: > Is there a standard IBM z/OS XLC macro for "is compiling on z/OS"? I > looked for __ZOS and __MVS and so forth but did not find anything. > > I have code that runs Windows or z/OS and I have just been using > #ifdef > WIN32 to differentiate the two cases, but now I need code that will > run Windows, z/OS or Linux so a Boolean check is no longer adequate. > > I don't need tremendous granularity - this release versus that release > or USS command versus batch - just "is z/OS rather than Windows or > Linux." And obviously I could kludge something, but I thought most > systems had a standard "this is who I am" macro. > > Thanks, > > Charles > > ---------------------------------------------------------------------- > 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
