summaryrefslogtreecommitdiff
path: root/include/compiler.h
Commit message (Collapse)AuthorAgeLines
* compiler.h: add uint typedefMike Frysinger2010-05-06-0/+1
| | | | | | | | | Recent crc changes started using the "uint" type in headers that are used on the build system. This subsequently broke mingw targets as they do not provide such a type. So add this basic typedef to compiler.h so that we do not have to worry about this breaking again in the future. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* move definition of macros likely and unlikely to compiler.hMatthias Kaehlcke2010-01-18-0/+3
| | | | | | | the macros likely and unlikely were defined in include/linux/mtd/compat.h, but used in code not related to MTD. moved the macro definitions to compiler.h Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
* Move uninitialized_var() macro from ubi_uboot.h to compiler.hAnton Vorontsov2009-09-04-0/+3
| | | | | | This is needed so that we could use this macro for non-UBI code. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
* compiler.h: unify system ifdef cruft hereMike Frysinger2009-07-19-0/+125
Shove a lot of the HOSTCC and related #ifdef checking crap into the new compiler.h header so that we can keep all other headers nice and clean. Also introduce custom uswap functions so we don't have to rely on the non standard implementations that a host may (or may not in the case of OS X) provide. This allows mkimage to finally build cleanly on an OS X system. Signed-off-by: Mike Frysinger <vapier@gentoo.org>