office-gobmx/external/pdfium/freetype.patch.1
Miklos Vajna 6d7b8977f1 external: update pdfium to 3064
This contains the new FPDFPath_GetFillColor / FPDFPageObj_GetType APIs I
want to use in CppunitTest_vcl_pdfexport.

Change-Id: I275ff761188c07dbbab27a1e0715ac250cd306c9
Reviewed-on: https://gerrit.libreoffice.org/36974
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-04-26 17:25:20 +02:00

18 lines
886 B
Groff

Upstream provides this define from the commandline, but while this define is
needed for fxge, it breaks the build for the bundled freetype. gbuild doesn't
support having different defines within the same Library, so just patch the
single translation unit that actually needs the define.
Long-term perhaps the solution is to enable freetype on all platforms inside
LO, then we don't have to build freetype as part of pdfium, so we can let
gbuild define this from the commandline.
diff --git a/core/fxge/freetype/fx_freetype.cpp b/core/fxge/freetype/fx_freetype.cpp
index 0ae207b02..879bf5ab9 100644
--- a/core/fxge/freetype/fx_freetype.cpp
+++ b/core/fxge/freetype/fx_freetype.cpp
@@ -1,3 +1,4 @@
+#define DEFINE_PS_TABLES
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.