diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-22 00:44:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-22 00:44:42 +0000 |
commit | 42172829ce7b4538ab3f79201378f1ea5256bfdb (patch) | |
tree | 44fc386eb6d2f2abfe901dad6b85a1592f060db1 /src | |
parent | b481036266d699e9fb57f6fe4dab8ef329ca3702 (diff) | |
download | tor-42172829ce7b4538ab3f79201378f1ea5256bfdb.tar tor-42172829ce7b4538ab3f79201378f1ea5256bfdb.tar.gz |
r16016@catbus: nickm | 2007-10-21 20:44:19 -0400
Check a platform assumption we have made without checking for too long: "Characters are represented in ascii."
svn:r12088
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 113399719..3107727df 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -50,6 +50,10 @@ #error "It seems your platform does not represent NULL as zero. 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 + /* ===== Compiler compatibility */ /* GCC can check printf types on arbitrary functions. */ |