diff options
author | Mark Young <marky@lunarg.com> | 2017-04-27 01:30:14 -0600 |
---|---|---|
committer | Mark Young <marky@lunarg.com> | 2017-05-01 10:37:05 -0600 |
commit | 44a918406c3baebe4e3ab911f91cf4d13642ea67 (patch) | |
tree | abd1dff5b384fbda127fd4bea6348744592a8438 | |
parent | 6e3442c40be4c735b830775a753bb449c331e15d (diff) |
tests: gh1602 - Add define for PRIxLEAST64
In C++, you need to define __STDC_FORMAT_MACROS prior to including
'inttypes.h' in order for it to properly expose PRIxLEAST64.
For some reason, many platforms expose this anyways without the
define, but some dont.
Change-Id: I1f6b6401540c1b84d95525cbe1ebc649f6f2d393
-rw-r--r-- | tests/loader_validation_tests.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/loader_validation_tests.cpp b/tests/loader_validation_tests.cpp index f3af7968..507ec2aa 100644 --- a/tests/loader_validation_tests.cpp +++ b/tests/loader_validation_tests.cpp @@ -26,7 +26,10 @@ * Author: Mark Young <marky@lunarG.com> */ -#include <inttypes.h> //Needed for PRIxLEAST64 +// Following items are needed for C++ to work with PRIxLEAST64 +#define __STDC_FORMAT_MACROS +#include <inttypes.h> + #include <stdint.h> // For UINT32_MAX #include <algorithm> |