aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-02-21 09:23:33 +1000
committerinmarket <andrewh@inmarket.com.au>2015-02-21 09:23:33 +1000
commit07a63f714373859ace005c0686a7ac6982ba30f9 (patch)
treec6cd9170fbb7aae44c6698117248b47ba7469c96 /src/gos
parent5e0a0bfd9b6db8e65bb6052d7b65547e803de42b (diff)
downloaduGFX-07a63f714373859ace005c0686a7ac6982ba30f9.tar.gz
uGFX-07a63f714373859ace005c0686a7ac6982ba30f9.tar.bz2
uGFX-07a63f714373859ace005c0686a7ac6982ba30f9.zip
Compile error and emulation errors for GFILE_NEED_STDIO
Diffstat (limited to 'src/gos')
-rw-r--r--src/gos/gos_linux.c3
-rw-r--r--src/gos/gos_osx.c3
-rw-r--r--src/gos/gos_raw32.c3
-rw-r--r--src/gos/gos_win32.c3
4 files changed, 12 insertions, 0 deletions
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