summaryrefslogtreecommitdiff
path: root/src/hb-buffer.h
diff options
context:
space:
mode:
authorfanc999 <fanc999@yahoo.com.tw>2017-10-07 18:57:14 +0800
committerBehdad Esfahbod <behdad@behdad.org>2017-10-07 12:57:14 +0200
commit48a9406839f086735a05a2f1a07987b8a6bd6d33 (patch)
treeb0f91595744a97e8a936a4a094b0bb0eeaba6d20 /src/hb-buffer.h
parentc9e2cf6f55c7682b8e7020654945ddd074ebfd24 (diff)
Fix build of HarfBuzz tools and HarfBuzz-GObject on Visual Studio (#555)
* hb-buffer.h: Mark hb_buffer_diff() for export This will fix the tools builds on Visual Studio, as the symbol is used by the tools. * build: Adapt NMake Makefiles for GLib 2.53.4 or later glib-mkenums was ported from a PERL script to a Python script, so we need to update how we generate the enum sources for HarfBuzz-GObject in the NMake builds. Let this be known in the build documentation for MSVC builds. One of the problems with the underlying cmd.exe that the NMake Makefiles run on is that shebang lines are not recognized, so we need to to test run the script with Python and see whether it succeeded by outputing a source file that is larger than 0 in file size (since running the PERL version of the script will clearly fail and cause an empty file to be created). If it succeeds, we then run a small Python utility script that makes the necessary string replacements, and we are done. If that fails, then we run the glib-mkenums script with PERL, and do the replacements with the PERL one-liners as we did before. We need to make replace.py use latin-1 encoding when using Python 3.x to cope with the copyright sign that is in the generated enum sources.
Diffstat (limited to 'src/hb-buffer.h')
-rw-r--r--src/hb-buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-buffer.h b/src/hb-buffer.h
index 1d633f7d..42564bb1 100644
--- a/src/hb-buffer.h
+++ b/src/hb-buffer.h
@@ -504,7 +504,7 @@ typedef enum { /*< flags >*/
} hb_buffer_diff_flags_t;
/* Compare the contents of two buffers, report types of differences. */
-hb_buffer_diff_flags_t
+HB_EXTERN hb_buffer_diff_flags_t
hb_buffer_diff (hb_buffer_t *buffer,
hb_buffer_t *reference,
hb_codepoint_t dottedcircle_glyph,