Compatibility fixes

This commit is contained in:
Chlumsky 2023-07-24 22:24:56 +02:00
parent 0414eea9cf
commit 0e42ada407
1 changed files with 10 additions and 3 deletions

View File

@ -55,9 +55,8 @@ sourceList = [
header = """ header = """
#pragma once #pragma once
#ifndef _USE_MATH_DEFINES #define MSDFGEN_USE_CPP11
#define _USE_MATH_DEFINES #define MSDFGEN_USE_FREETYPE
#endif
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>
@ -80,6 +79,14 @@ source = """
#include FT_MULTIPLE_MASTERS_H #include FT_MULTIPLE_MASTERS_H
#endif #endif
#endif #endif
#ifdef _MSC_VER
#pragma warning(disable : 4456 4458)
#endif
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
""" """
with open(os.path.join(rootDir, 'LICENSE.txt'), 'r') as file: with open(os.path.join(rootDir, 'LICENSE.txt'), 'r') as file: