Define "__STDC_FORMAT_MACROS" for using PRI{u,x}64 in C++.
[folly.git] / folly / test / ConvTest.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>