Compatibility fixes

This commit is contained in:
Chlumsky 2023-07-24 22:24:56 +02:00
parent 321a7a9732
commit 2ded35238e
1 changed files with 10 additions and 3 deletions

View File

@ -55,9 +55,8 @@ sourceList = [
header = """
#pragma once
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#define MSDFGEN_USE_CPP11
#define MSDFGEN_USE_FREETYPE
#include <cstddef>
#include <cstdlib>
@ -80,6 +79,14 @@ source = """
#include FT_MULTIPLE_MASTERS_H
#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: