diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-16 20:26:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-16 20:26:12 +0000 |
commit | f619c4603ea7c4dcd66fe67ce6ff76502af11865 (patch) | |
tree | b87c1fc37be02631be2b586bf52c0d6c9ba03778 /src/common/util.h | |
parent | 56a592dbe36701bbfdc262866d35ed34a265925e (diff) | |
download | tor-f619c4603ea7c4dcd66fe67ce6ff76502af11865.tar.gz tor-f619c4603ea7c4dcd66fe67ce6ff76502af11865.zip |
Add an autoconf test to make sure that memset(&ptr, 0, sizeof(ptr)) and ptr=NULL are equivalent
svn:r2536
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 5e3a95d4b6..99f326d26d 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -20,6 +20,10 @@ #include <time.h> #endif +#ifndef NULL_REP_IS_ZERO_BYTES +#error "It seems your platform does not represent NULL as zero. We can't cope." +#endif + #if _MSC_VER > 1300 #include <winsock2.h> #include <ws2tcpip.h> |