At 19:11 -0700 on 11/25/2015, Jack J. Woehr wrote about Re: Any clever way to defeat the C compiler's options prece:

> 1. Will make in fact solve this specific problem? Can one readily specify "global" compiler options for most modules and override them for specific modules?

Not exactly. #pragma is #pragma and sometimes you just have to bite the bullet and manually surround preprocessor
directives with platform #ifdefs

     #ifndef __Z_OS__ /* or whatever is the platform tag for you */
     #pragma(foo)
     #endif

Will using this use of ifndef solve the issue that if a compiler option is set at launch time due to being coded in the JCL or via a DD it can/will override the pragma supplied setting? The issue that was raised is that there is apparently no way to override the global settings via a pragma in the source code of a module being compiled. Unless this happens all the ifndef does is supply options to be used when compiling under Z/OS SO LONG AS THE COMPILER does not override the requested option due to a Global Default override.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to