summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklibc.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklibc.h')
-rw-r--r--apps/plugins/lua/rocklibc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklibc.h b/apps/plugins/lua/rocklibc.h
index 78b83a6c18..9b68f429d2 100644
--- a/apps/plugins/lua/rocklibc.h
+++ b/apps/plugins/lua/rocklibc.h
@@ -28,10 +28,12 @@
28 28
29#ifdef SIMULATOR 29#ifdef SIMULATOR
30#include <errno.h> 30#include <errno.h>
31#define PREFIX(_x_) sim_ ## _x_
31#else 32#else
32extern int errno; 33extern int errno;
33#define EINVAL 22 /* Invalid argument */ 34#define EINVAL 22 /* Invalid argument */
34#define ERANGE 34 /* Math result not representable */ 35#define ERANGE 34 /* Math result not representable */
36#define PREFIX
35#endif 37#endif
36 38
37#define __likely LIKELY 39#define __likely LIKELY
@@ -41,5 +43,7 @@ extern int errno;
41#define memcmp rb->memcmp 43#define memcmp rb->memcmp
42#define strlen rb->strlen 44#define strlen rb->strlen
43 45
46extern int PREFIX(fscanf)(int fd, const char *fmt, ...);
47
44#endif /* _ROCKLIBC_H_ */ 48#endif /* _ROCKLIBC_H_ */
45 49