Tweak TCPIP headers for more GCC friendliness
This is still a long way from being possible to compile with GCC. The main aim here is to facilitate preprocessing of TCPIPLibs clients so that we can run `cppcheck` on them. The problem being addressed is that the GCC preprocessor always looks preferentially for include files in the same directory as the one that features the `#include` statement. This means that when * `machine/limits.h` does `#include <limits.h>` * `machine/stdarg.h` does `#include <stdarg.h>` * `sys/signal.h` does `#include <signal.h>` * `sys/time.h` does `#include <time.h>` then, rather than including the top-level version of the header, as intended, GCC ends up in an infinite loop of inclusion. To deal with this with the minimum of side-effects, the recursive includes are now conditional on `__GNUC__` bein undefined - except `machine/stdarg.h` which adds nothing to `stdarg.h` (so it's recommended that where GCC compatibility is required, it is simply changed to `#include <stdarg.h>`). Where possible, instances of `#include <machine/limits.h>` within the TCPIPLibs headers have been prefixed with `#include <limits.h>`, and similarly for the others. The extra inclusion of the top-level header should be harmless for Norcroft compilation, but ensures that clients of those second-tier headers are less likely to need an additional `#include` of a top-level header in order to enable `cppcheck`.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
Static Analysis | |||||||||
passed |
#23923
cross
|
cppcheck |
00:00:11
|
|
|||||
passed |
#23916
cross
|
gitattributes |
00:00:01
|
|
|||||
passed |
#23917
cross
|
gitignore |
00:00:00
|
|
|||||
passed |
#23920
cross
|
head_log |
00:00:01
|
|
|||||
passed |
#23922
cross
|
head_whitesp |
00:00:00
|
|
|||||
passed |
#23918
cross
|
license |
00:00:00
|
|
|||||
passed |
#23921
cross
|
makefile |
00:00:01
|
|
|||||
passed |
#23919
cross
|
versionnum |
00:00:01
|
|
|||||
Softload | |||||||||
passed |
#23924
cross
|
softload |
00:00:13
|
|
|||||
failed |
#23925
cross
allowed to fail
|
softload_gnu |
00:00:11
|
|
|||||
Disc | |||||||||
failed |
#23926
cross
allowed to fail
|
disc_BuildHost |
00:00:14
|
|
|||||
failed |
#23927
cross
allowed to fail
|
disc_Disc |
00:00:26
|
|
|||||
Rom | |||||||||
failed |
#23928
cross
allowed to fail
|
rom_BCM2835 |
00:00:25
|
|
|||||
failed |
#23935
cross
allowed to fail
|
rom_iMx6 |
00:00:25
|
|
|||||
failed |
#23929
cross
allowed to fail
|
rom_IOMD32 |
00:00:24
|
|
|||||
failed |
#23930
cross
allowed to fail
|
rom_OMAP3 |
00:00:25
|
|
|||||
failed |
#23931
cross
allowed to fail
|
rom_OMAP4 |
00:00:26
|
|
|||||
failed |
#23932
cross
allowed to fail
|
rom_OMAP5 |
00:00:25
|
|
|||||
failed |
#23933
cross
allowed to fail
|
rom_Titanium |
00:00:25
|
|
|||||
failed |
#23934
cross
allowed to fail
|
rom_Tungsten |
00:00:24
|
|
|||||
Cleanup | |||||||||
passed |
#23936
cross
|
cleanup |
00:00:01
|
|
|||||
Name | Stage | Failure | ||
---|---|---|---|---|
failed
|
rom_iMx6 | Rom | ||
|
||||
failed
|
rom_Tungsten | Rom | ||
|
||||
failed
|
rom_Titanium | Rom | ||
|
||||
failed
|
rom_OMAP5 | Rom | ||
|
||||
failed
|
rom_OMAP4 | Rom | ||
|
||||
failed
|
rom_OMAP3 | Rom | ||
|
||||
failed
|
rom_IOMD32 | Rom | ||
|
||||
failed
|
rom_BCM2835 | Rom | ||
|
||||
failed
|
disc_Disc | Disc | ||
|
||||
failed
|
disc_BuildHost | Disc | ||
|
||||
failed
|
softload_gnu | Softload | ||
|