brintos

brintos / llvm-project-archived public Read only

0
0
Text · 759 B · 045745b Raw
27 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// Code on Windows expects to be able to do:10//11//  #define _USE_MATH_DEFINES12//  #include <math.h>13//14// and receive the definitions of mathematical constants, even if <math.h>15// has previously been included. Make sure that works.16//17 18#ifdef _MSC_VER19#   include <math.h>20#   define _USE_MATH_DEFINES21#   include <math.h>22 23#   ifndef M_PI24#       error M_PI not defined25#   endif26#endif27