[Openmp-commits] [PATCH] D48984: [OpenMP] Define __STDC_FORMAT_MACROS in callback.h

Phabricator via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 6 07:21:04 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL336438: Define the __STDC_FORMAT_MACROS to avoid test failure on some platforms. (authored by kli, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D48984?vs=154271&id=154403#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48984

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


Index: openmp/trunk/runtime/test/ompt/callback.h
===================================================================
--- openmp/trunk/runtime/test/ompt/callback.h
+++ openmp/trunk/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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48984.154403.patch
Type: text/x-patch
Size: 449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180706/13257900/attachment.bin>


More information about the Openmp-commits mailing list