fix compilation of pngformats.c under FreeMint

This commit is contained in:
Thomas Bernard 2019-12-07 16:18:03 +01:00
parent 245795f1e1
commit 556849e268
2 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,6 @@
///@file fileformats.c
/// Saving and loading different picture formats.
#ifdef __MINT__
#undef _GNU_SOURCE
#endif
#include <string.h>
#ifndef __no_pnglib__
// just for png_sig_cmp()

View File

@ -28,6 +28,9 @@
/// Saving and loading of PNG file format
#ifndef __no_pnglib__
#ifdef __MINT__
#undef _GNU_SOURCE
#endif
#include <stdlib.h>
#include <string.h>
#include <assert.h>