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