diff options
| author | Aaron Puchert <aaron.puchert@sap.com> | 2017-10-20 12:58:10 +0200 |
|---|---|---|
| committer | Aaron Puchert <aaron.puchert@sap.com> | 2017-11-27 14:57:42 +0100 |
| commit | 3175dce5fcec54fef6299cc8b595d84db5b29cf4 (patch) | |
| tree | 0c82ae4f4afa9eb44893e1bd7d1f9a884459e2d9 /src/nad_init.c | |
| parent | 1f48f4c333bfe135296d3be643ef4981dc401c38 (diff) | |
| download | PROJ-3175dce5fcec54fef6299cc8b595d84db5b29cf4.tar.gz PROJ-3175dce5fcec54fef6299cc8b595d84db5b29cf4.zip | |
Replace some asserts by compile-time assertions
Decisions regarding the size of certain types are always made at
compile time, hence this is where the assertion should take place.
If the assertions fail, there is now a compiler error.
Diffstat (limited to 'src/nad_init.c')
| -rw-r--r-- | src/nad_init.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nad_init.c b/src/nad_init.c index a9082f8f..99342aa5 100644 --- a/src/nad_init.c +++ b/src/nad_init.c @@ -32,16 +32,6 @@ #include <errno.h> #include <string.h> -#ifdef _WIN32_WCE -/* assert.h includes all Windows API headers and causes 'LP' name clash. - * Here assert we disable assert() for Windows CE. - * TODO - mloskot: re-implement porting friendly assert - */ -# define assert(exp) ((void)0) -#else -# include <assert.h> -#endif /* _WIN32_WCE */ - /************************************************************************/ /* swap_words() */ /* */ |
