I'm not sure I follow. Is this right? The macro HAVE_STDINT_H is defined somewhere already in the source code, so defining it in OPTFILE would cause an error.
However, you want it set to a value that would be supplied from OPTFILE? Is that right? Could you DEF(HAVE_STDINT_H_VALUE=1) in OPTFILE and then #define HAVE_STDINT_H HAVE_STDINT_H_VALUE in the source code? Possibly preceded by an #undef? Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Ze'ev Atlas Sent: Sunday, September 16, 2018 4:58 AM To: [email protected] Subject: C macro processor - supply exteranl values - emulating CMake Hi allI am using IBM C compiler via good ol' JCL. I already know how to supply external macro definitions by supplying://OPTFILE DD DSN=MY.LIB(OPTFILE),...and an OPTFILE member that contains lines like:DEF(HAVE_STDINT_H)or evenDEF(HAVE_STDINT_H=1) I have a new challenge, something like:#define HAVE_STDINT_H @HAVE_STDINT_H@which means that I should not define the macro externally, but get only the value from CMake… I do not have CMake and I do not use it since I run with good ol' JCL. Is there a way to supply the value only? Thank you Ze'ev Atlas ---------------------------------------------------------------------- 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
