summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-11-07 10:05:05 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-11-07 10:05:05 -0500
commitc693377ed334ad339ac3315a71fa6c38465dfc19 (patch)
treea915e2b72128f74fa5700527d594cc57bbc71780
parentcb9e7b7aacab1da319b1224cee4844ab11d1c26f (diff)
downloadfreetype2-c693377ed334ad339ac3315a71fa6c38465dfc19.tar.gz
[dlg] Lighten up the inclusions.
The DLG wrapper needs to know if FT_DEBUG_LOGGING is defined in `ftoption.h`. It does not need entire FreeType. * src/dlg/dlgwrap.c: Include FT_CONFIG_OPTIONS_H directly.
-rw-r--r--src/dlg/dlgwrap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dlg/dlgwrap.c b/src/dlg/dlgwrap.c
index 5b2006c12..98dc4b22c 100644
--- a/src/dlg/dlgwrap.c
+++ b/src/dlg/dlgwrap.c
@@ -16,12 +16,8 @@
*/
- /* We have to duplicate these feature test macros from `dlg.c` */
- /* since `freetype.h` loads some affected standard headers. */
-#define _XOPEN_SOURCE 600
-#define _POSIX_C_SOURCE 200809L
-
-#include <freetype/freetype.h>
+#include <ft2build.h>
+#include FT_CONFIG_OPTIONS_H
#ifdef FT_DEBUG_LOGGING