diff options
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r-- | extras/mini-os/include/endian.h | 4 | ||||
-rw-r--r-- | extras/mini-os/include/xmalloc.h | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/extras/mini-os/include/endian.h b/extras/mini-os/include/endian.h index cdf432bc43..534551767a 100644 --- a/extras/mini-os/include/endian.h +++ b/extras/mini-os/include/endian.h @@ -12,4 +12,8 @@ #include <arch_wordsize.h> +#define BYTE_ORDER __BYTE_ORDER +#define BIG_ENDIAN __BIG_ENDIAN +#define LITTLE_ENDIAN __LITTLE_ENDIAN + #endif /* endian.h */ diff --git a/extras/mini-os/include/xmalloc.h b/extras/mini-os/include/xmalloc.h index 13b242e21e..11fb0279f6 100644 --- a/extras/mini-os/include/xmalloc.h +++ b/extras/mini-os/include/xmalloc.h @@ -14,16 +14,16 @@ #include <limits.h> #define DEFAULT_ALIGN (sizeof(unsigned long)) -#define malloc(size) _xmalloc(size, DEFAULT_ALIGN) -#define free(ptr) xfree(ptr) -#define realloc(ptr, size) _realloc(ptr, size) -/* Free any of the above. */ +extern void *malloc(size_t size); +extern void *realloc(void *ptr, size_t size); +extern void free(void *ptr); + +/* Free memory from any xmalloc*() call. */ extern void xfree(const void *); /* Underlying functions */ extern void *_xmalloc(size_t size, size_t align); -extern void *_realloc(void *ptr, size_t size); #endif |