diff options
author | Kelvin Li <kkwli0@gmail.com> | 2018-07-06 14:15:59 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2018-07-06 14:15:59 +0000 |
commit | 9bb743d3edd8d51de3467e2cd2717be328ab3cb4 (patch) | |
tree | 0b139f3b9a9ad5d42451c38c3f42c0d837f228ec /openmp | |
parent | fa9f1020a3d0ae469f4e75f6ae4909614a1f1411 (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-x | openmp/runtime/test/ompt/callback.h | 5 |
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> |