summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn3
-rw-r--r--core/fxge/freetype/fx_freetype.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 9795f254a3..839fffc0b8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1083,11 +1083,10 @@ jumbo_static_library("fxge") {
":fxcrt",
]
- defines = [ "DEFINE_PS_TABLES" ]
if (is_component_build || use_system_freetype) {
# ft_adobe_glyph_list is not exported from the Freetype shared library so we
# need it defined in component builds and builds using system freetype.
- defines += [ "DEFINE_PS_TABLES_DATA" ]
+ defines = [ "DEFINE_PS_TABLES_DATA" ]
}
if (pdf_enable_xfa) {
diff --git a/core/fxge/freetype/fx_freetype.cpp b/core/fxge/freetype/fx_freetype.cpp
index b0f56ab66c..fb1c29a63a 100644
--- a/core/fxge/freetype/fx_freetype.cpp
+++ b/core/fxge/freetype/fx_freetype.cpp
@@ -6,6 +6,7 @@
#include "core/fxge/fx_freetype.h"
+#define DEFINE_PS_TABLES
#include "third_party/freetype/include/pstables.h"
static int xyq_search_node(char* glyph_name,