From 07a63f714373859ace005c0686a7ac6982ba30f9 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 21 Feb 2015 09:23:33 +1000 Subject: Compile error and emulation errors for GFILE_NEED_STDIO --- src/gos/gos_linux.c | 3 +++ src/gos/gos_osx.c | 3 +++ src/gos/gos_raw32.c | 3 +++ src/gos/gos_win32.c | 3 +++ 4 files changed, 12 insertions(+) (limited to 'src/gos') diff --git a/src/gos/gos_linux.c b/src/gos/gos_linux.c index e6fbe26c..52f983b2 100644 --- a/src/gos/gos_linux.c +++ b/src/gos/gos_linux.c @@ -5,6 +5,9 @@ * http://ugfx.org/license.html */ +// We need to include stdio.h below. Turn off GFILE_NEED_STDIO just for this file to prevent conflicts +#define GFILE_NEED_STDIO_MUST_BE_OFF + #include "gfx.h" #if GFX_USE_OS_LINUX diff --git a/src/gos/gos_osx.c b/src/gos/gos_osx.c index f21b8a75..f0c2b4cd 100644 --- a/src/gos/gos_osx.c +++ b/src/gos/gos_osx.c @@ -5,6 +5,9 @@ * http://ugfx.org/license.html */ +// We need to include stdio.h below. Turn off GFILE_NEED_STDIO just for this file to prevent conflicts +#define GFILE_NEED_STDIO_MUST_BE_OFF + #include "gfx.h" #if GFX_USE_OS_OSX diff --git a/src/gos/gos_raw32.c b/src/gos/gos_raw32.c index 22c753aa..d4072dc1 100644 --- a/src/gos/gos_raw32.c +++ b/src/gos/gos_raw32.c @@ -5,6 +5,9 @@ * http://ugfx.org/license.html */ +// We need to include stdio.h below for Win32 emulation. Turn off GFILE_NEED_STDIO just for this file to prevent conflicts +#define GFILE_NEED_STDIO_MUST_BE_OFF + #include "gfx.h" #if GFX_USE_OS_RAW32 diff --git a/src/gos/gos_win32.c b/src/gos/gos_win32.c index a7e0943b..8e769aab 100644 --- a/src/gos/gos_win32.c +++ b/src/gos/gos_win32.c @@ -5,6 +5,9 @@ * http://ugfx.org/license.html */ +// We need to include stdio.h below. Turn off GFILE_NEED_STDIO just for this file to prevent conflicts +#define GFILE_NEED_STDIO_MUST_BE_OFF + #include "gfx.h" #if GFX_USE_OS_WIN32 -- cgit v1.2.3