git » libjio » commit 44036b8

Fix _FILE_OFFSET_BITS check in libjio.h

author Alberto Bertogli
2008-07-25 22:40:31 UTC
committer Alberto Bertogli
2008-07-25 22:40:31 UTC
parent d5715e472549de00f68dce5c8c4c07648dd3364a

Fix _FILE_OFFSET_BITS check in libjio.h

The check was wrong; luckily _FILE_OFFSET_BITS is often (if not always)
undefined if not set to 64 so there shouldn't be any problems with this
change.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libjio.h +1 -1

diff --git a/libjio.h b/libjio.h
index f342148..c48b47d 100644
--- a/libjio.h
+++ b/libjio.h
@@ -19,7 +19,7 @@
  * library (which uses LFS) and that's just begging for problems. There should
  * be a portable way for the C library to do some of this for us, but until I
  * find one, this is the best we can do */
-#if (!defined _FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS != 64)
+#if (!defined _FILE_OFFSET_BITS) || (_FILE_OFFSET_BITS != 64)
 #error "You must compile your application with Large File Support"
 #endif