/usr/include/oce/Standard_math.hxx is in liboce-foundation-dev 0.17.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | // Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <math.h>
// MSVC versions prior to 12 did not provided acosh, asinh, atanh functions in standard library
#if (defined(_MSC_VER) && (_MSC_VER < 1800)) || defined(__BORLANDC__)
__Standard_API double __cdecl acosh ( double );
__Standard_API double __cdecl asinh ( double );
__Standard_API double __cdecl atanh ( double );
#endif
// if __STRICT_ANSI__ is defined when using MinGW, no math defines will be defined
#ifdef __MINGW32__
# undef M_SQRT1_2
# define M_SQRT1_2 0.707106781186547524401
# undef M_PI_2
# define M_PI_2 1.57079632679489661923
# undef M_PI
# define M_PI 3.14159265358979323846
#endif /* __MINGW32__ */
#endif /* _MSC_VER, __BORLANDC__, or __MINGW32__ */
|