summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
-rw-r--r--apps/plugins/frotz/frotzplugin.h1
-rw-r--r--apps/plugins/lua/rockaux.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 1ab15f82f2..b60e2d6768 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -598,7 +598,7 @@ static const struct plugin_api rockbox_api = {
598#endif 598#endif
599 599
600 /* misc */ 600 /* misc */
601#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) 601#if !defined(SIMULATOR)
602 &errno, 602 &errno,
603#endif 603#endif
604 srand, 604 srand,
diff --git a/apps/plugin.h b/apps/plugin.h
index 584c146b94..5aaa6380b7 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -737,7 +737,7 @@ struct plugin_api {
737#endif 737#endif
738 738
739 /* misc */ 739 /* misc */
740#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) 740#if !defined(SIMULATOR)
741 int* __errno; 741 int* __errno;
742#endif 742#endif
743 void (*srand)(unsigned int seed); 743 void (*srand)(unsigned int seed);
diff --git a/apps/plugins/frotz/frotzplugin.h b/apps/plugins/frotz/frotzplugin.h
index 1a52bdb913..f975fc8c22 100644
--- a/apps/plugins/frotz/frotzplugin.h
+++ b/apps/plugins/frotz/frotzplugin.h
@@ -27,6 +27,7 @@
27 * pretend stdio.h is implemented. references to FILE * still have to be 27 * pretend stdio.h is implemented. references to FILE * still have to be
28 * changed to int, and references to NULL into -1, but there are less of those 28 * changed to int, and references to NULL into -1, but there are less of those
29 */ 29 */
30#undef ferror
30#define fread(ptr, size, nmemb, stream) rb->read(stream, ptr, size*nmemb) 31#define fread(ptr, size, nmemb, stream) rb->read(stream, ptr, size*nmemb)
31#define fwrite(ptr, size, nmemb, stream) rb->write(stream, ptr, size*nmemb) 32#define fwrite(ptr, size, nmemb, stream) rb->write(stream, ptr, size*nmemb)
32#define fclose(stream) rb->close(stream) 33#define fclose(stream) rb->close(stream)
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c
index ea95f232ab..1f832d4cc7 100644
--- a/apps/plugins/lua/rockaux.c
+++ b/apps/plugins/lua/rockaux.c
@@ -24,7 +24,7 @@
24#define _ROCKCONF_H_ /* Protect against unwanted include */ 24#define _ROCKCONF_H_ /* Protect against unwanted include */
25#include "lua.h" 25#include "lua.h"
26 26
27#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) 27#if !defined(SIMULATOR)
28int errno = 0; 28int errno = 0;
29#endif 29#endif
30 30