Define "__STDC_FORMAT_MACROS" for using PRI{u,x}64 in C++.
authorZonr Chang <zonr.net@gmail.com>
Tue, 30 Aug 2016 20:41:51 +0000 (13:41 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Tue, 30 Aug 2016 20:53:27 +0000 (13:53 -0700)
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
folly/test/StringTest.cpp

index feaf74964070e8789aa57a1155c711656fae61d6..fd26293e4965ead7d7abb4c0002b1174d65c1872 100644 (file)
  * limitations under the License.
  */
 
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS 1
+#endif
+
 #include <boost/lexical_cast.hpp>
 #include <folly/Conv.h>
 #include <folly/Foreach.h>
 #include <gtest/gtest.h>
 #include <algorithm>
+#include <cinttypes>
 #include <limits>
 #include <sstream>
 #include <stdexcept>
index c01cca5ddf07776b618211eaba06087571a2de23..a736fbbe65633dd3b46dd9cf62c8cb110ec4f2f5 100644 (file)
  * limitations under the License.
  */
 
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS 1
+#endif
+
 #include <folly/String.h>
 
+#include <cinttypes>
+
 #include <boost/regex.hpp>
 #include <gtest/gtest.h>