diff options
-rw-r--r-- | Rules.mak | 1 | ||||
-rw-r--r-- | include/libbb.h | 15 |
2 files changed, 16 insertions, 0 deletions
@@ -174,6 +174,7 @@ CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wshadow,) | |||
174 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,) | 174 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,) |
175 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-mmax-stack-frame=256,) | 175 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-mmax-stack-frame=256,) |
176 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen) | 176 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen) |
177 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-finline-limit=0) | ||
177 | 178 | ||
178 | # Preemptively pin this too. | 179 | # Preemptively pin this too. |
179 | PROG_CFLAGS:= | 180 | PROG_CFLAGS:= |
diff --git a/include/libbb.h b/include/libbb.h index db43984b8..6d6213901 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -551,4 +551,19 @@ extern uint32_t *bb_crc32_filltable (int endian); | |||
551 | 551 | ||
552 | extern const char BB_BANNER[]; | 552 | extern const char BB_BANNER[]; |
553 | 553 | ||
554 | // Make sure we call functions instead of macros. | ||
555 | #undef isalnum | ||
556 | #undef isalpha | ||
557 | #undef isascii | ||
558 | #undef isblank | ||
559 | #undef iscntrl | ||
560 | #undef isdigit | ||
561 | #undef isgraph | ||
562 | #undef islower | ||
563 | #undef isprint | ||
564 | #undef ispunct | ||
565 | #undef isspace | ||
566 | #undef isupper | ||
567 | #undef isxdigit | ||
568 | |||
554 | #endif /* __LIBBUSYBOX_H__ */ | 569 | #endif /* __LIBBUSYBOX_H__ */ |