[Openmp-commits] [openmp] r293747 - [OpenMP] Redefined macro warning in libomptarget

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 1 00:33:39 PST 2017


Author: grokos
Date: Wed Feb  1 02:33:38 2017
New Revision: 293747

URL: http://llvm.org/viewvc/llvm-project?rev=293747&view=rev
Log:
[OpenMP] Redefined macro warning in libomptarget

Fixed compilation warning in libomptarget.

Differential Revision: https://reviews.llvm.org/D29353


Modified:
    openmp/trunk/libomptarget/src/omptarget.h

Modified: openmp/trunk/libomptarget/src/omptarget.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/src/omptarget.h?rev=293747&r1=293746&r2=293747&view=diff
==============================================================================
--- openmp/trunk/libomptarget/src/omptarget.h (original)
+++ openmp/trunk/libomptarget/src/omptarget.h Wed Feb  1 02:33:38 2017
@@ -198,7 +198,10 @@ void __kmpc_push_target_tripcount(int32_
     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))




More information about the Openmp-commits mailing list