summaryrefslogtreecommitdiff
path: root/cmake/TestFileOffsetBits.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-04-10 11:36:37 +0000
committerAntonin Descampe <antonin@gmail.com>2014-04-10 11:36:37 +0000
commit5c2a08edd71f75e5aa6b5240b152d9b395523e7e (patch)
tree45ae8ab3b0629b96930b5a2c26fc20a088212d6a /cmake/TestFileOffsetBits.c
parentd7c5c8518f9c9defdff3e0df034fbcac7d8557b8 (diff)
[2.0] Backport all changes since r2798 (included) from trunkopenjpeg-2.0
Diffstat (limited to 'cmake/TestFileOffsetBits.c')
-rw-r--r--cmake/TestFileOffsetBits.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/TestFileOffsetBits.c b/cmake/TestFileOffsetBits.c
index 993b2da4..cd679c11 100644
--- a/cmake/TestFileOffsetBits.c
+++ b/cmake/TestFileOffsetBits.c
@@ -1,10 +1,11 @@
#include <sys/types.h>
+/* Cause a compile-time error if off_t is smaller than 64 bits */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ];
+
int main(int argc, char **argv)
{
- /* Cause a compile-time error if off_t is smaller than 64 bits */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ];
return 0;
}