[Openmp-commits] [openmp] r336438 - Define the __STDC_FORMAT_MACROS to avoid test failure on some platforms.

Kelvin Li via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 6 07:15:59 PDT 2018


Author: kli
Date: Fri Jul  6 07:15:59 2018
New Revision: 336438

URL: http://llvm.org/viewvc/llvm-project?rev=336438&view=rev
Log:
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

Modified:
    openmp/trunk/runtime/test/ompt/callback.h

Modified: openmp/trunk/runtime/test/ompt/callback.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/callback.h?rev=336438&r1=336437&r2=336438&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/callback.h (original)
+++ openmp/trunk/runtime/test/ompt/callback.h Fri Jul  6 07:15:59 2018
@@ -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>




More information about the Openmp-commits mailing list