After commit rL293468, macro __STDC_FORMAT_MACROS is defined twice:
- the compile line for omptarget.cpp specifies -D__STDC_FORMAT_MACROS
- Now the macro is also defined in omptarget.h
This results in a warning. If libomptarget is compiled with -Werror, compilation will fail.
This is a patch which allow the definition of that macro in omptarget.h only if it has not been defined again.
Thanks to Carlo for finding out about the problem.