diff options
author | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2012-02-09 17:55:04 +0000 |
---|---|---|
committer | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2012-02-09 17:55:04 +0000 |
commit | 079073d45867ae273825fe7b04659d8f00bfbd71 (patch) | |
tree | ca45c22d2fdebe87fe9db147252f62613eb33ca4 /mcon/U/d_ipv6.U | |
parent | 8233fb6494e96dff527497d4ae5eada2765be91b (diff) |
Factorized definition of STATIC_ASSERT.
Converted integer and pointer size computations to allow cross-compiling.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@130 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U/d_ipv6.U')
-rw-r--r-- | mcon/U/d_ipv6.U | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mcon/U/d_ipv6.U b/mcon/U/d_ipv6.U index 4d4b150..f2ed3f8 100644 --- a/mcon/U/d_ipv6.U +++ b/mcon/U/d_ipv6.U @@ -8,7 +8,7 @@ ?RCS: that same Artistic Licence; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: -?MAKE:d_ipv6: Trylink cat i_arpainet i_netdb i_syssock i_niin \ +?MAKE:d_ipv6: Assert Trylink cat i_arpainet i_netdb i_syssock i_niin \ i_winsock2 i_ws2tcpip ?MAKE: -pick add $@ %< ?S:d_ipv6: @@ -52,8 +52,7 @@ case "$d_ipv6" in #ifdef I_WS2TCPIP #include "Ws2tcpip.h" #endif -#define STATIC_ASSERT(x) \ - do { switch (0) { case ((x) ? 1 : 0): case 0: break; } } while(0) +#include "static_assert.h" int main(void) { |