From 66aeece76a4345e754376b599ff6770f5a4b28af Mon Sep 17 00:00:00 2001 From: Zonr Chang Date: Tue, 30 Aug 2016 13:41:51 -0700 Subject: [PATCH] Define "__STDC_FORMAT_MACROS" for using PRI{u,x}64 in C++. Summary: Closes https://github.com/facebook/folly/pull/467 Reviewed By: yfeldblum Differential Revision: D3787151 Pulled By: Orvid fbshipit-source-id: e255c9daea9917082f684e52e27984770c9f08b1 --- folly/test/ConvTest.cpp | 5 +++++ folly/test/StringTest.cpp | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/folly/test/ConvTest.cpp b/folly/test/ConvTest.cpp index feaf7496..fd26293e 100644 --- a/folly/test/ConvTest.cpp +++ b/folly/test/ConvTest.cpp @@ -14,11 +14,16 @@ * limitations under the License. */ +#ifndef __STDC_FORMAT_MACROS +#define __STDC_FORMAT_MACROS 1 +#endif + #include #include #include #include #include +#include #include #include #include diff --git a/folly/test/StringTest.cpp b/folly/test/StringTest.cpp index c01cca5d..a736fbbe 100644 --- a/folly/test/StringTest.cpp +++ b/folly/test/StringTest.cpp @@ -14,8 +14,14 @@ * limitations under the License. */ +#ifndef __STDC_FORMAT_MACROS +#define __STDC_FORMAT_MACROS 1 +#endif + #include +#include + #include #include -- 2.34.1