aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-01-31 13:19:27 -0500
committerNick Mathewson <nickm@torproject.org>2013-01-31 13:19:27 -0500
commitb35b4d5a9a9967da9416fc8d2112910f00529967 (patch)
tree73e13824a69a95cc832bb9f16603830b9f4eaa65 /src
parentb0dd35589124ba596532b3640d28dfb21989b590 (diff)
parent73d605b0f759a2ff9f859f78f76098dcdb290d37 (diff)
downloadtor-b35b4d5a9a9967da9416fc8d2112910f00529967.tar.gz
tor-b35b4d5a9a9967da9416fc8d2112910f00529967.zip
Merge branch 'double-0-check'
Diffstat (limited to 'src')
-rw-r--r--src/common/compat.h5
-rw-r--r--src/win32/orconfig.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 25293a4ed6..b036419718 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -74,6 +74,11 @@
#error "It seems your platform does not represent NULL as zero. We can't cope."
#endif
+#ifndef DOUBLE_0_REP_IS_ZERO_BYTES
+#error "It seems your platform does not represent 0.0 as zeros. We can't cope."
+#endif
+
+
#if 'a'!=97 || 'z'!=122 || 'A'!=65 || ' '!=32
#error "It seems that you encode characters in something other than ASCII."
#endif
diff --git a/src/win32/orconfig.h b/src/win32/orconfig.h
index 6e45a2928b..ef08fdb2be 100644
--- a/src/win32/orconfig.h
+++ b/src/win32/orconfig.h
@@ -151,6 +151,9 @@
/* Define to 1 iff NULL is represented by a 0 in memory. */
#define NULL_REP_IS_ZERO_BYTES 1
+/* Define to 1 iff memset(0) sets doubles to 0.0 */
+#define DOUBLE_0_REP_IS_ZERO_BYTES 1
+
/* Name of package */
#define PACKAGE "tor"