[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.
This commit is contained in:
Werner Lemberg 2020-12-01 22:13:40 +01:00
parent 047f295fac
commit 1c229af2d2
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,11 @@
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.

View File

@ -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>