summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-05-14 22:57:52 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-05-14 22:57:52 +0000
commit530c25130fb561a1260d32b756d008385d7e5a69 (patch)
tree318db0e5294d9baceeff060df29f2ac47626ffb4 /apps/plugins
parent759cfece4bb96547f34bf52ceffd0412599d6362 (diff)
downloadrockbox-530c25130fb561a1260d32b756d008385d7e5a69.zip
rockbox-530c25130fb561a1260d32b756d008385d7e5a69.tar.gz
rockbox-530c25130fb561a1260d32b756d008385d7e5a69.tar.bz2
rockbox-530c25130fb561a1260d32b756d008385d7e5a69.tar.xz
Make the sim buildable with mingw again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26037 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/frotz/frotzplugin.h1
-rw-r--r--apps/plugins/lua/rockaux.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/frotz/frotzplugin.h b/apps/plugins/frotz/frotzplugin.h
index 1a52bdb..f975fc8 100644
--- a/apps/plugins/frotz/frotzplugin.h
+++ b/apps/plugins/frotz/frotzplugin.h
@@ -27,6 +27,7 @@
* pretend stdio.h is implemented. references to FILE * still have to be
* changed to int, and references to NULL into -1, but there are less of those
*/
+#undef ferror
#define fread(ptr, size, nmemb, stream) rb->read(stream, ptr, size*nmemb)
#define fwrite(ptr, size, nmemb, stream) rb->write(stream, ptr, size*nmemb)
#define fclose(stream) rb->close(stream)
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c
index ea95f23..1f832d4 100644
--- a/apps/plugins/lua/rockaux.c
+++ b/apps/plugins/lua/rockaux.c
@@ -24,7 +24,7 @@
#define _ROCKCONF_H_ /* Protect against unwanted include */
#include "lua.h"
-#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
+#if !defined(SIMULATOR)
int errno = 0;
#endif