From: Zonr Chang Date: Tue, 30 Aug 2016 20:41:51 +0000 (-0700) Subject: Define "__STDC_FORMAT_MACROS" for using PRI{u,x}64 in C++. X-Git-Tag: v2016.09.05.00~13 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=66aeece76a4345e754376b599ff6770f5a4b28af;p=folly.git 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 --- 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