grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / filesys / CDVDFS / src / aros_stuff.h
blob299e77c4f01a69310c5e13c41f175d376369f6dd
1 #ifdef __AROS__
3 #include <aros/macros.h>
4 #include <dos/bptr.h>
6 #ifdef AROS_KERNEL
7 #ifdef AROS_FAST_BSTR
8 #define USE_FAST_BSTR
9 #endif
10 #endif
12 #else
14 #define AROS_BE2WORD(x) x
15 #define AROS_BE2LONG(x) x
17 #define AROS_BSTR_ADDR(s) (((STRPTR)BADDR(s))+1)
18 #define AROS_BSTR_strlen(s) (AROS_BSTR_ADDR(s)[-1])
19 #define AROS_BSTR_getchar(s,l) (AROS_BSTR_ADDR(s)[l])
21 #endif
23 #ifdef LATTICE
24 #define SAVEDS __saveds
25 #else
26 #define SAVEDS
27 #endif