diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/applets.h b/include/applets.h index 254924a7a..fe8c59782 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -10,16 +10,19 @@ | |||
10 | * file result in the listing remaining in ascii order. You have been warned. | 10 | * file result in the listing remaining in ascii order. You have been warned. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifndef PROTOTYPES | 13 | #if defined(PROTOTYPES) |
14 | const struct BB_applet applets[] = { | ||
15 | #define APPLET(a,b,c,d) {a,b,c,d}, | ||
16 | #define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL}, | ||
17 | #else | ||
18 | #define APPLET(a,b,c,d) \ | 14 | #define APPLET(a,b,c,d) \ |
19 | extern int b(int argc, char **argv); \ | 15 | extern int b(int argc, char **argv); \ |
20 | extern const char d[]; | 16 | extern const char d[]; |
21 | #define APPLET_NOUSAGE(a,b,c) \ | 17 | #define APPLET_NOUSAGE(a,b,c) \ |
22 | extern int b(int argc, char **argv); | 18 | extern int b(int argc, char **argv); |
19 | #elif defined(MAKE_LINKS) | ||
20 | #define APPLET(a,b,c,d) LINK c a | ||
21 | #define APPLET_NOUSAGE(a,b,c) LINK c a | ||
22 | #else | ||
23 | const struct BB_applet applets[] = { | ||
24 | #define APPLET(a,b,c,d) {a,b,c,d}, | ||
25 | #define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL}, | ||
23 | #endif | 26 | #endif |
24 | 27 | ||
25 | #ifdef BB_TEST | 28 | #ifdef BB_TEST |
@@ -378,7 +381,7 @@ const struct BB_applet applets[] = { | |||
378 | APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage) | 381 | APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage) |
379 | #endif | 382 | #endif |
380 | 383 | ||
381 | #ifndef PROTOTYPES | 384 | #if !defined(PROTOTYPES) && !defined(MAKE_LINKS) |
382 | { 0,NULL,0,NULL} | 385 | { 0,NULL,0,NULL} |
383 | }; | 386 | }; |
384 | 387 | ||