freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master c693377 1/2: [dlg] Lighten up the inclusions.


From: Werner Lemberg
Subject: [freetype2] master c693377 1/2: [dlg] Lighten up the inclusions.
Date: Sun, 7 Nov 2021 10:34:46 -0500 (EST)

branch: master
commit c693377ed334ad339ac3315a71fa6c38465dfc19
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    [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.
---
 src/dlg/dlgwrap.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/dlg/dlgwrap.c b/src/dlg/dlgwrap.c
index 5b2006c..98dc4b2 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]