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 <charl...@mcn.org> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to