shithub: freetype+ttf2subf

Download patch

ref: 1c229af2d2f1b89b87fb1a4abaf6cb2ee69aa6fe
parent: 047f295fac7b5b119de318ba0fb786a2edff0f47
author: Werner Lemberg <[email protected]>
date: Tue Dec 1 17:13:40 EST 2020

[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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2020-12-01  Werner Lemberg  <[email protected]>
 
+	[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  <[email protected]>
+
 	* src/type42/t42parse.c: Fix `-Wformat` warnings.
 
 2020-12-01  Priyesh Kumar  <[email protected]>
--- 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>