summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/bench/workgen/workgen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/bench/workgen/workgen.cxx')
-rw-r--r--src/third_party/wiredtiger/bench/workgen/workgen.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/bench/workgen/workgen.cxx b/src/third_party/wiredtiger/bench/workgen/workgen.cxx
index 2f7c0c4f5c4..b1753981540 100644
--- a/src/third_party/wiredtiger/bench/workgen/workgen.cxx
+++ b/src/third_party/wiredtiger/bench/workgen/workgen.cxx
@@ -26,8 +26,16 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-#define __STDC_LIMIT_MACROS // needed to get UINT64_MAX in C++
-#define __STDC_FORMAT_MACROS // needed to get PRIuXX macros in C++
+/* Needed to get UINT64_MAX in C++. */
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS
+#endif
+
+/* Needed to get PRIuXX macros in C++. */
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS
+#endif
+
#include <iomanip>
#include <iostream>
#include <fstream>