This change uses the cinttypes header when compiling C++ tests rather than the C-based inttypes.h header. Some versions of the inttypes.h header require also defining __STDC_FORMAT_MACROS to use the printf format macro constants used in the tests with C++ compiles, but not all. Switching to the cinttypes header seems to work in all cases.
see discussion: https://github.com/KhronosGroup/OpenCL-SDK/issues/58#issuecomment-1260074680
This change uses the
cinttypes
header when compiling C++ tests rather than the C-basedinttypes.h
header. Some versions of theinttypes.h
header require also defining__STDC_FORMAT_MACROS
to use the printf format macro constants used in the tests with C++ compiles, but not all. Switching to thecinttypes
header seems to work in all cases.