summaryrefslogtreecommitdiff
path: root/src/include/verify_build.h
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-10-02 19:58:07 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-10-02 19:58:07 -0400
commitf2c75a3060b572d0fc42c8aaddf915ba38f38bd9 (patch)
tree6371bf53a1591ff46c8e153e8a074356a8f870e3 /src/include/verify_build.h
parent50b1e57a98b068a7c1147d44647dd504f719fe2d (diff)
downloadmongo-f2c75a3060b572d0fc42c8aaddf915ba38f38bd9.tar.gz
Minor cleanups: complain if we see off_t from now, hardwire tests for the
size of size_t and off_t before we compile.
Diffstat (limited to 'src/include/verify_build.h')
-rw-r--r--src/include/verify_build.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/verify_build.h b/src/include/verify_build.h
index 4ccedc4507a..adb262fd927 100644
--- a/src/include/verify_build.h
+++ b/src/include/verify_build.h
@@ -56,17 +56,16 @@ __wt_verify_build(void)
* The btree code encodes key/value pairs in size_t's, and requires at
* least 8B size_t's.
*/
- STATIC_ASSERT(sizeof(size_t) >= sizeof(int64_t));
+ STATIC_ASSERT(sizeof(size_t) >= 8);
/*
- * We require an off_t fit into an 8B chunk because 8B is the largest
+ * We require a wt_off_t fit into an 8B chunk because 8B is the largest
* integral value we can encode into an address cookie.
*
- * WiredTiger has never been tested on a system with 4B off_t types,
+ * WiredTiger has never been tested on a system with 4B file offsets,
* disallow them for now.
*/
- STATIC_ASSERT(sizeof(off_t) == sizeof(int64_t));
- STATIC_ASSERT(sizeof(wt_off_t) == sizeof(int64_t));
+ STATIC_ASSERT(sizeof(wt_off_t) == 8);
}
#undef ALIGN_CHECK