diff options
Diffstat (limited to 'apps/plugins/puzzles/rbcompat.h')
-rw-r--r-- | apps/plugins/puzzles/rbcompat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/rbcompat.h b/apps/plugins/puzzles/rbcompat.h index 148aaef073..4bb9f39ca7 100644 --- a/apps/plugins/puzzles/rbcompat.h +++ b/apps/plugins/puzzles/rbcompat.h | |||
@@ -1,5 +1,11 @@ | |||
1 | #ifndef __RBCOMPAT_H__ | ||
2 | #define __RBCOMPAT_H__ | ||
3 | |||
1 | #include "plugin.h" | 4 | #include "plugin.h" |
2 | #include "rbassert.h" | 5 | #include "rbassert.h" |
6 | #include "lib/pluginlib_exit.h" | ||
7 | |||
8 | #include <tlsf.h> | ||
3 | 9 | ||
4 | int sprintf_wrapper(char *str, const char *fmt, ...); | 10 | int sprintf_wrapper(char *str, const char *fmt, ...); |
5 | char *getenv_wrapper(const char *c); | 11 | char *getenv_wrapper(const char *c); |
@@ -60,3 +66,9 @@ double acos_wrapper(double x); | |||
60 | #define strtoq strtoq_wrapper | 66 | #define strtoq strtoq_wrapper |
61 | #define strtouq strtouq_wrapper | 67 | #define strtouq strtouq_wrapper |
62 | #define vsprintf vsprintf_wrapper | 68 | #define vsprintf vsprintf_wrapper |
69 | |||
70 | #define abs(x) ((x)<0?-(x):(x)) | ||
71 | |||
72 | /* work around compilation error */ | ||
73 | typedef void FILE; | ||
74 | #endif | ||