check for existing #defines

This commit is contained in:
jrkb 2023-04-16 07:37:49 +02:00
parent eff83cda8b
commit 3a156be801

View file

@ -15,9 +15,15 @@
#include FT_FREETYPE_H
#include FT_MULTIPLE_MASTERS_H
#ifndef F26DOT6_TO_DOUBLE
#define F26DOT6_TO_DOUBLE(x) (1 / 64. * double(x))
#endif
#ifndef F16DOT16_TO_DOUBLE
#define F16DOT16_TO_DOUBLE(x) (1 / 65536. * double(x))
#endif
#ifndef DOUBLE_TO_F16DOT16
#define DOUBLE_TO_F16DOT16(x) FT_Fixed(65536. * x)
#endif
namespace ofxGPUFont {