HomePhabricator

[libomptarget] Fix Debug build with glibc < 2.18

Authored by Hahnfeld on Jan 30 2017, 12:11 AM.

Description

[libomptarget] Fix Debug build with glibc < 2.18

glibc < 2.18 is C99 compliant and only provides the format macros in C++ if
__STDC_FORMAT_MACROS is defined. This change fixes the debug build for
GCC 4.8, GCC 6.2 and Clang 3.9.1 that were previously broken on my machine.

It shows no regression for libc++ >= 4.0.0 which has a fix since September:
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160926/171659.html

llvm-svn: 293468

Details

Committed
HahnfeldJan 30 2017, 12:11 AM
Parents
rGadec28351388: [LanRef] Fix typo in getelementptr example.
Branches
Unknown
Tags
Unknown