Commit b874e722 by Geoffrey Martin-Noble Committed by Dominic Hamon

Guard definition of __STDC_FORMAT_MACROS in ifndef (#875)

This macro is sometimes already defined and redefining it results in build errors.
parent 7411874d
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
#include <sstream> #include <sstream>
#include <thread> #include <thread>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include "benchmark/benchmark.h" #include "benchmark/benchmark.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment