Pragma directive syntax
XL C/C++ supports these forms of pragma directives.
#pragma options option_name- These pragmas use exactly the same syntax as their command-line option equivalent. The exact
syntax and list of supported pragmas of this type are provided in #pragma options.

- #pragma name
- This form uses the following syntax:
The name is the pragma directive name, and the suboptions are any required or optional suboptions that can be specified for the pragma, where applicable.
- _Pragma ("name")
- This form uses the following syntax:
For example, the statement:
is equivalent to:_Pragma ( "pack(1)" )#pragma pack(1)
The name on a pragma is subject to macro substitutions, unless otherwise stated. The compiler ignores unrecognized pragmas, issuing an informational message indicating this.
If you have any pragmas that are not common to both C and C++ in code that will be compiled by both compilers, you may add conditional compilation directives around the pragmas. (This is not strictly necessary since unrecognized pragmas are ignored.)
