diff options
author | Ron Yorston <rmy@pobox.com> | 2017-07-29 09:55:08 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-07-29 09:55:08 +0100 |
commit | 86d60bb0ceb277e500a8daabd995bc713bbdadc9 (patch) | |
tree | 3e439f92d5a3fec2546d526579cc85e98f066e40 /include/platform.h | |
parent | b30c60a9786a1608211a96755996bd6c02951a27 (diff) | |
parent | 69be994de69d794f038f10a3e7a67519b2006581 (diff) | |
download | busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.tar.gz busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.tar.bz2 busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 5ae82427a..9633fc725 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -54,6 +54,13 @@ | |||
54 | 54 | ||
55 | #define UNUSED_PARAM __attribute__ ((__unused__)) | 55 | #define UNUSED_PARAM __attribute__ ((__unused__)) |
56 | #define NORETURN __attribute__ ((__noreturn__)) | 56 | #define NORETURN __attribute__ ((__noreturn__)) |
57 | |||
58 | #if __GNUC_PREREQ(4,5) | ||
59 | # define bb_unreachable(altcode) __builtin_unreachable() | ||
60 | #else | ||
61 | # define bb_unreachable(altcode) altcode | ||
62 | #endif | ||
63 | |||
57 | /* "The malloc attribute is used to tell the compiler that a function | 64 | /* "The malloc attribute is used to tell the compiler that a function |
58 | * may be treated as if any non-NULL pointer it returns cannot alias | 65 | * may be treated as if any non-NULL pointer it returns cannot alias |
59 | * any other pointer valid when the function returns. This will often | 66 | * any other pointer valid when the function returns. This will often |
@@ -416,6 +423,7 @@ typedef unsigned smalluint; | |||
416 | #define HAVE_MNTENT_H 1 | 423 | #define HAVE_MNTENT_H 1 |
417 | #define HAVE_NET_ETHERNET_H 1 | 424 | #define HAVE_NET_ETHERNET_H 1 |
418 | #define HAVE_SYS_STATFS_H 1 | 425 | #define HAVE_SYS_STATFS_H 1 |
426 | #define HAVE_PRINTF_PERCENTM 1 | ||
419 | 427 | ||
420 | #if defined(__UCLIBC__) | 428 | #if defined(__UCLIBC__) |
421 | # if UCLIBC_VERSION < KERNEL_VERSION(0, 9, 32) | 429 | # if UCLIBC_VERSION < KERNEL_VERSION(0, 9, 32) |
@@ -490,6 +498,7 @@ typedef unsigned smalluint; | |||
490 | # undef HAVE_DPRINTF | 498 | # undef HAVE_DPRINTF |
491 | # undef HAVE_UNLOCKED_STDIO | 499 | # undef HAVE_UNLOCKED_STDIO |
492 | # undef HAVE_UNLOCKED_LINE_OPS | 500 | # undef HAVE_UNLOCKED_LINE_OPS |
501 | # undef HAVE_PRINTF_PERCENTM | ||
493 | #endif | 502 | #endif |
494 | 503 | ||
495 | #if defined(__dietlibc__) | 504 | #if defined(__dietlibc__) |
@@ -512,6 +521,7 @@ typedef unsigned smalluint; | |||
512 | # undef HAVE_STRVERSCMP | 521 | # undef HAVE_STRVERSCMP |
513 | # undef HAVE_XTABS | 522 | # undef HAVE_XTABS |
514 | # undef HAVE_UNLOCKED_LINE_OPS | 523 | # undef HAVE_UNLOCKED_LINE_OPS |
524 | # undef HAVE_PRINTF_PERCENTM | ||
515 | # include <osreldate.h> | 525 | # include <osreldate.h> |
516 | # if __FreeBSD_version < 1000029 | 526 | # if __FreeBSD_version < 1000029 |
517 | # undef HAVE_STRCHRNUL /* FreeBSD added strchrnul() between 1000028 and 1000029 */ | 527 | # undef HAVE_STRCHRNUL /* FreeBSD added strchrnul() between 1000028 and 1000029 */ |
@@ -546,6 +556,7 @@ typedef unsigned smalluint; | |||
546 | # undef HAVE_STRVERSCMP | 556 | # undef HAVE_STRVERSCMP |
547 | # undef HAVE_UNLOCKED_LINE_OPS | 557 | # undef HAVE_UNLOCKED_LINE_OPS |
548 | # undef HAVE_NET_ETHERNET_H | 558 | # undef HAVE_NET_ETHERNET_H |
559 | # undef HAVE_PRINTF_PERCENTM | ||
549 | #endif | 560 | #endif |
550 | 561 | ||
551 | /* | 562 | /* |