aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/platform.h b/include/platform.h
index d1ac391eb..9458e2e02 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -26,6 +26,7 @@
26#define HAVE_SETBIT 1 26#define HAVE_SETBIT 1
27#define HAVE_STRCASESTR 1 27#define HAVE_STRCASESTR 1
28#define HAVE_STRCHRNUL 1 28#define HAVE_STRCHRNUL 1
29#define HAVE_STRSEP 1
29#define HAVE_STRSIGNAL 1 30#define HAVE_STRSIGNAL 1
30#define HAVE_VASPRINTF 1 31#define HAVE_VASPRINTF 1
31 32
@@ -185,10 +186,10 @@
185#if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ 186#if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__
186# define BB_BIG_ENDIAN 1 187# define BB_BIG_ENDIAN 1
187# define BB_LITTLE_ENDIAN 0 188# define BB_LITTLE_ENDIAN 0
188#elif __BYTE_ORDER == __BIG_ENDIAN 189#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
189# define BB_BIG_ENDIAN 1 190# define BB_BIG_ENDIAN 1
190# define BB_LITTLE_ENDIAN 0 191# define BB_LITTLE_ENDIAN 0
191#elif __BYTE_ORDER == __LITTLE_ENDIAN 192#elif (defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN) || defined(__386__)
192# define BB_BIG_ENDIAN 0 193# define BB_BIG_ENDIAN 0
193# define BB_LITTLE_ENDIAN 1 194# define BB_LITTLE_ENDIAN 1
194#else 195#else
@@ -381,6 +382,7 @@ typedef unsigned smalluint;
381# undef HAVE_SETBIT 382# undef HAVE_SETBIT
382# undef HAVE_STRCASESTR 383# undef HAVE_STRCASESTR
383# undef HAVE_STRCHRNUL 384# undef HAVE_STRCHRNUL
385# undef HAVE_STRSEP
384# undef HAVE_STRSIGNAL 386# undef HAVE_STRSIGNAL
385# undef HAVE_VASPRINTF 387# undef HAVE_VASPRINTF
386#endif 388#endif
@@ -419,6 +421,10 @@ extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC;
419extern char *strchrnul(const char *s, int c) FAST_FUNC; 421extern char *strchrnul(const char *s, int c) FAST_FUNC;
420#endif 422#endif
421 423
424#ifndef HAVE_STRSEP
425extern char *strsep(char **stringp, const char *delim) FAST_FUNC;
426#endif
427
422#ifndef HAVE_STRSIGNAL 428#ifndef HAVE_STRSIGNAL
423/* Not exactly the same: instead of "Stopped" it shows "STOP" etc */ 429/* Not exactly the same: instead of "Stopped" it shows "STOP" etc */
424# define strsignal(sig) get_signame(sig) 430# define strsignal(sig) get_signame(sig)