OSDN Git Service

Fixed _FILE_OFFSET_BITS check for the case when it is not defined at all.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Fri, 18 May 2012 15:45:38 +0000 (15:45 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Fri, 18 May 2012 15:45:38 +0000 (15:45 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@286 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/io.c

index 609c15d..8e9de8c 100644 (file)
@@ -32,7 +32,7 @@
 #include <ublio.h>
 #endif
 
-#if _FILE_OFFSET_BITS != 64
+#if !defined(_FILE_OFFSET_BITS) || (_FILE_OFFSET_BITS != 64)
        #error You should define _FILE_OFFSET_BITS=64
 #endif