mirror of https://github.com/xqemu/xqemu.git
osdep: Define __USE_MINGW_ANSI_STDIO before includes
This patch moves the definition of __USE_MINGW_ANSI_STDIO to precede inclusion of any headers. This is done to prevent stdio.h from assigning a default value which was previously conflicting with our unconditional definition, resulting in numerous compiler warnings.
This commit is contained in:
parent
832b441427
commit
6dc3f4f582
|
@ -85,17 +85,17 @@ extern int daemon(int, int);
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* enable C99/POSIX format strings (needs mingw32-runtime 3.15 or later) */
|
||||
#ifdef __MINGW32__
|
||||
#define __USE_MINGW_ANSI_STDIO 1
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* enable C99/POSIX format strings (needs mingw32-runtime 3.15 or later) */
|
||||
#ifdef __MINGW32__
|
||||
#define __USE_MINGW_ANSI_STDIO 1
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in New Issue