diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index d42ce5f39..c4743cf0f 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -379,9 +379,9 @@ extern char *safe_strncpy(char *dst, const char *src, size_t size); | |||
379 | extern char *xasprintf(const char *format, ...) __attribute__ ((format (printf, 1, 2))); | 379 | extern char *xasprintf(const char *format, ...) __attribute__ ((format (printf, 1, 2))); |
380 | // gcc-4.1.1 still isn't good enough at optimizing it | 380 | // gcc-4.1.1 still isn't good enough at optimizing it |
381 | // (+200 bytes compared to macro) | 381 | // (+200 bytes compared to macro) |
382 | //static ATTRIBUTE_ALWAYS_INLINE | 382 | //static ALWAYS_INLINE |
383 | //int LONE_DASH(const char *s) { return s[0] == '-' && !s[1]; } | 383 | //int LONE_DASH(const char *s) { return s[0] == '-' && !s[1]; } |
384 | //static ATTRIBUTE_ALWAYS_INLINE | 384 | //static ALWAYS_INLINE |
385 | //int NOT_LONE_DASH(const char *s) { return s[0] != '-' || s[1]; } | 385 | //int NOT_LONE_DASH(const char *s) { return s[0] != '-' || s[1]; } |
386 | #define LONE_DASH(s) ((s)[0] == '-' && !(s)[1]) | 386 | #define LONE_DASH(s) ((s)[0] == '-' && !(s)[1]) |
387 | #define NOT_LONE_DASH(s) ((s)[0] != '-' || (s)[1]) | 387 | #define NOT_LONE_DASH(s) ((s)[0] != '-' || (s)[1]) |
@@ -611,7 +611,7 @@ int write_pidfile(const char *path); | |||
611 | #define remove_pidfile(f) ((void)unlink(f)) | 611 | #define remove_pidfile(f) ((void)unlink(f)) |
612 | #else | 612 | #else |
613 | /* Why? #defining it to 1 gives "warning: statement with no effect"... */ | 613 | /* Why? #defining it to 1 gives "warning: statement with no effect"... */ |
614 | static ATTRIBUTE_ALWAYS_INLINE int write_pidfile(const char *path) { return 1; } | 614 | static ALWAYS_INLINE int write_pidfile(const char *path) { return 1; } |
615 | #define remove_pidfile(f) ((void)0) | 615 | #define remove_pidfile(f) ((void)0) |
616 | #endif | 616 | #endif |
617 | 617 | ||