mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-27 16:49:42 +01:00
[hb-directwrite] Fix building with HB_DISABLE_DEPRECATED
Fix the following build error with HB_DISABLE_DEPRECATED:
In file included from harfbuzz\src\harfbuzz.cc:14:
harfbuzz\src\hb-directwrite.cc(468,1): error : no previous prototype
for function 'hb_directwrite_font_get_dw_font'
[-Werror,-Wmissing-prototypes]
468 | hb_directwrite_font_get_dw_font (hb_font_t *font)
| ^
hb_directwrite_font_get_dw_font() is guarded with
HB_DISABLE_DEPRECATED only in the header file, but not in the .cc.
Signed-off-by: Alexander Lobakin <alobakin@mailbox.org>
This commit is contained in:
1 parent
c763763662
commit
7d67028e08
1 file changed
+3
@@ -452,6 +452,7 @@ hb_directwrite_font_get_dw_font_face (hb_font_t *font)
|
||||
return (IDWriteFontFace *) (const void *) font->data.directwrite;
|
||||
}
|
||||
|
||||
#ifndef HB_DISABLE_DEPRECATED
|
||||
|
||||
/**
|
||||
* hb_directwrite_font_get_dw_font:
|
||||
@@ -471,3 +472,5 @@ hb_directwrite_font_get_dw_font (hb_font_t *font)
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user