Changeset 1346
- Timestamp:
- 08/27/25 18:14:08 (34 hours ago)
- Location:
- cpp/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_math.h
r1329 r1346 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 4Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2025 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 6 6 #define _NONSTD_MATH_H_ 7 7 8 9 #ifdef _MSC_VER 8 #if defined _MSC_VER || defined __MINGW32__ 10 9 #define _USE_MATH_DEFINES //after this is defined, the next #include <math.h> or <cmath> will define M_PI etc. 11 10 #include <math.h> //in vc2008, <cmath> worked here, but no longer in vc2010 because "something" (some other .h from stl?) earlier includes <cmath> without _USE_MATH_DEFINES, and <cmath> includes <math.h> (just once because it has "include guards" like any other .h) … … 83 82 #endif 84 83 85 #if defined LINUX || defined TIZEN || defined __ANDROID__84 #if defined LINUX || defined __MINGW32__ || defined TIZEN || defined __ANDROID__ 86 85 #include <fenv.h> 87 86 #endif … … 90 89 { 91 90 //handling floating point exceptions 92 #if defined LINUX || defined TIZEN || defined __ANDROID__91 #if defined LINUX || defined __MINGW32__ || defined TIZEN || defined __ANDROID__ 93 92 //fenv.h values 94 93 static constexpr unsigned int FPEX_DIV0 = FE_DIVBYZERO; -
cpp/common/nonstd_span.h
r1340 r1346 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 2019-202 4Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 2019-2025 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 8 8 #include <string> 9 9 #include <vector> 10 #include <cstdint> // uint8_t 10 11 11 12 // Remove this and use std::span when available (c++20)
Note: See TracChangeset
for help on using the changeset viewer.