[OpenMP][Bugfix] Move double and float versions of abs under c++ macro
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Wed, 15 May 2019 20:28:23 +0000 (20:28 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Wed, 15 May 2019 20:28:23 +0000 (20:28 +0000)
commit9392bd69879678de484a22deccd9c7e0d84232c5
tree6ef080d41ce081641eee39aca780b6fb7b13f2ae
parentb8df789ff36d3b4184276f8a17e45e038306d330
[OpenMP][Bugfix] Move double and float versions of abs under c++ macro

Summary:
This is a fix for the reported bug:

[[ https://bugs.llvm.org/show_bug.cgi?id=41861 | 41861 ]]

abs functions need to be moved under the c++ macro to avoid conflicts with included headers.

Reviewers: tra, jdoerfert, hfinkel, ABataev, caomhin

Reviewed By: jdoerfert

Subscribers: guansong, cfe-commits

Tags: #clang

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

llvm-svn: 360809
clang/lib/Headers/__clang_cuda_cmath.h
clang/lib/Headers/__clang_cuda_math_forward_declares.h
clang/test/Headers/Inputs/include/cstdlib
clang/test/Headers/nvptx_device_cmath_functions.c
clang/test/Headers/nvptx_device_cmath_functions.cpp
clang/test/Headers/nvptx_device_cmath_functions_cxx17.cpp
clang/test/Headers/nvptx_device_math_functions.c
clang/test/Headers/nvptx_device_math_functions.cpp
clang/test/Headers/nvptx_device_math_functions_cxx17.cpp