mirror of https://github.com/Chlumsky/msdfgen.git
Compatibility fixes
This commit is contained in:
parent
0414eea9cf
commit
0e42ada407
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue