From 556849e268d57766ffc1fabb03fa5a90ab348d4f Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 7 Dec 2019 16:18:03 +0100 Subject: [PATCH] fix compilation of pngformats.c under FreeMint --- src/fileformats.c | 3 --- src/pngformat.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fileformats.c b/src/fileformats.c index f6fb382e..7a7a7f4b 100644 --- a/src/fileformats.c +++ b/src/fileformats.c @@ -27,9 +27,6 @@ ///@file fileformats.c /// Saving and loading different picture formats. -#ifdef __MINT__ -#undef _GNU_SOURCE -#endif #include #ifndef __no_pnglib__ // just for png_sig_cmp() diff --git a/src/pngformat.c b/src/pngformat.c index bd779f29..bb7d758e 100644 --- a/src/pngformat.c +++ b/src/pngformat.c @@ -28,6 +28,9 @@ /// Saving and loading of PNG file format #ifndef __no_pnglib__ +#ifdef __MINT__ +#undef _GNU_SOURCE +#endif #include #include #include