diff options
| author | George Rokos <grokos@us.ibm.com> | 2017-02-01 08:33:38 +0000 |
|---|---|---|
| committer | George Rokos <grokos@us.ibm.com> | 2017-02-01 08:33:38 +0000 |
| commit | efd412f8fe070a7234babaa092d94a97772ad416 (patch) | |
| tree | b44c4d248a47105c9ca0c5efe7e0adcdb3c83190 | |
| parent | d6d57bb359b04f8c01c6d231effc4e9b3377d2d8 (diff) | |
| download | bcm5719-llvm-efd412f8fe070a7234babaa092d94a97772ad416.tar.gz bcm5719-llvm-efd412f8fe070a7234babaa092d94a97772ad416.zip | |
[OpenMP] Redefined macro warning in libomptarget
Fixed compilation warning in libomptarget.
Differential Revision: https://reviews.llvm.org/D29353
llvm-svn: 293747
| -rw-r--r-- | openmp/libomptarget/src/omptarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openmp/libomptarget/src/omptarget.h b/openmp/libomptarget/src/omptarget.h index 5b4e7ff9cd6..ec2f99f82ad 100644 --- a/openmp/libomptarget/src/omptarget.h +++ b/openmp/libomptarget/src/omptarget.h @@ -198,7 +198,10 @@ void __kmpc_push_target_tripcount(int32_t device_id, uint64_t loop_tripcount); fprintf(stderr, __VA_ARGS__); \ } +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS +#endif + #include <inttypes.h> #define DPxMOD "0x%0*" PRIxPTR #define DPxPTR(ptr) ((int)(2*sizeof(uintptr_t))), ((uintptr_t) (ptr)) |

