summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorKelvin Li <kkwli0@gmail.com>2018-07-06 14:15:59 +0000
committerKelvin Li <kkwli0@gmail.com>2018-07-06 14:15:59 +0000
commit9bb743d3edd8d51de3467e2cd2717be328ab3cb4 (patch)
tree0b139f3b9a9ad5d42451c38c3f42c0d837f228ec /openmp
parentfa9f1020a3d0ae469f4e75f6ae4909614a1f1411 (diff)
Define the __STDC_FORMAT_MACROS to avoid test failure on some platforms.
ompt/misc/api_calls_from_other_thread.cpp ompt/misc/interoperability.cpp Differential Revision: https://reviews.llvm.org/D48984
Diffstat (limited to 'openmp')
-rwxr-xr-xopenmp/runtime/test/ompt/callback.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openmp/runtime/test/ompt/callback.h b/openmp/runtime/test/ompt/callback.h
index af871b37fc6..d62f964a1de 100755
--- a/openmp/runtime/test/ompt/callback.h
+++ b/openmp/runtime/test/ompt/callback.h
@@ -1,6 +1,11 @@
+#ifndef _BSD_SOURCE
#define _BSD_SOURCE
+#endif
#define _DEFAULT_SOURCE
#include <stdio.h>
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS
+#endif
#include <inttypes.h>
#include <omp.h>
#include <ompt.h>