aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fix typoMike Frysinger2006-03-231-1/+1
|
* Fixup to the previous (portability) patch. Linux actually does needRob Landley2006-03-091-0/+8
| | | | arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
* - put NLS stuff in one central place to avoid redefines.Bernhard Reutner-Fischer2006-02-231-1/+5
| | | | | | | | Fixes warnings about: fdisk.c:45:1: warning: "_" redefined nfsmount.c:121:1: warning: "_" redefined nfsmount.c:122:1: warning: "N_" redefined interface.c:84:1: warning: "_" redefined
* Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedRob Landley2006-02-211-0/+15
| | | | md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
* New USE() macrosRob Landley2006-02-131-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For each CONFIG_SYMBOL, include/bb_config.h now has both ENABLE_SYMBOL and USE_SYMBOL(x). ENABLE_SYMBOL is still always defined (1 or 0) so that if(ENABLE) should optimize out when it's zero. The USE_SYMBOL(X) will only splice in X if the symbol is defined, otherwise it'll be empty. Thus we can convert this: #ifdef CONFIG_ARGS opt = bb_getopt_ulflags(argc, argv, "ab:c" #ifdef CONFIG_THINGY "d:" #endif , &bvalue #ifdef CONFIG_THINGY , &thingy #endif ); #endif into this: if (ENABLE_ARGS) { opt = bb_getopt_ulflags(argc, argv, "ab:c" USE_THINGY("d:"), &bvalue USE_THINGY(, &thingy)); } And it should produce the same code. Unlike the old versions in include/_usage.h, the new USE_SYMBOL(x) can handle commas in its arguments (as shown above). (The _usage.h file is obsolete and no longer generated.) Nobody should need to include config.h directly anymore, bb_config.h should define all the configuration stuff we need. Someday, the CONFIG_SYMBOL versions should go away in favor of ENABLE_SYMBOL and USE_SYMBOL(). Thanks to vodz for the new version of bb_mkdep.c that works with function macros.
* - add and use ATTRIBUTE_ALIGNED(num_bytes)Bernhard Reutner-Fischer2006-01-311-0/+4
| | | | - remove unused parameter pindex from fdisk.c, xbsd_initlabel()
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-0/+82
- use shorter boilerplate while at it.