mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 06:34:01 +00:00
common: fix compatibility issue for MSVC
Math Constants are not defined in Standard C/C++ for this, we can use _USE_MATH_DEFINES before math headers.
This commit is contained in:
parent
89d35123d8
commit
87b94b7a7f
3 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,9 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _USE_MATH_DEFINES //Math Constants are not defined in Standard C/C++.
|
||||
|
||||
#include <limits>
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _USE_MATH_DEFINES //Math Constants are not defined in Standard C/C++.
|
||||
|
||||
#include <fstream>
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _USE_MATH_DEFINES //Math Constants are not defined in Standard C/C++.
|
||||
|
||||
#include <math.h>
|
||||
#include <clocale>
|
||||
#include <ctype.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue