diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/dlg/dlgwrap.c | 5 |
2 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2020-12-01 Werner Lemberg <wl@gnu.org> + [dlg] Fix compiler warnings. + + * src/dlg/dlgwrap.c: Duplicate some feature test macros from + `dlg.c`, which must come first before loading standard headers. For + example, `freetype.h` loads `stdio.h` if compiled in debug mode. + +2020-12-01 Werner Lemberg <wl@gnu.org> + * src/type42/t42parse.c: Fix `-Wformat` warnings. 2020-12-01 Priyesh Kumar <priyeshkkumar@gmail.com> diff --git a/src/dlg/dlgwrap.c b/src/dlg/dlgwrap.c index 0333eb930..ea034fb84 100644 --- a/src/dlg/dlgwrap.c +++ b/src/dlg/dlgwrap.c @@ -16,6 +16,11 @@ */ + /* We have to duplicate these feature test macros from `dlg.c` */ + /* since `freetype.h` loads some affected standard headers. */ +#define _XOPEN_SOURCE +#define _POSIX_C_SOURCE 200809L + #include <freetype/freetype.h> |