diff options
author | rubidium <rubidium@openttd.org> | 2009-04-08 23:41:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-08 23:41:48 +0000 |
commit | 882e495f5c93512b39764273a61ead8f2954d6b6 (patch) | |
tree | 44a7e1a0333681858dd0d92d658d7151c5b7ea3e /src/network/core/os_abstraction.h | |
parent | c2dbc8270be5b423019ea64e68e6b212d713c123 (diff) | |
download | openttd-882e495f5c93512b39764273a61ead8f2954d6b6.tar.xz |
(svn r15993) -Codechange: clean up/generalise the handling of the server list
Diffstat (limited to 'src/network/core/os_abstraction.h')
-rw-r--r-- | src/network/core/os_abstraction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h index 28c53d91c..1a4bc1691 100644 --- a/src/network/core/os_abstraction.h +++ b/src/network/core/os_abstraction.h @@ -289,6 +289,10 @@ static inline bool SetNoDelay(SOCKET d) #endif } +/* Make sure these structures have the size we expect them to be */ +assert_compile(sizeof(in_addr) == 4); +assert_compile(sizeof(in6_addr) == 16); + #endif /* ENABLE_NETWORK */ #endif /* NETWORK_CORE_OS_ABSTRACTION_H */ |