OSDN Git Service

Explicitly require C99 and define _GNU_SOURCE to enable all needed functions.
[android-x86/external-exfat.git] / libexfat / io.c
index 609c15d..f0beddc 100644 (file)
@@ -18,7 +18,6 @@
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#define _XOPEN_SOURCE 500 /* for pread() and pwrite() in Linux */
 #include "exfat.h"
 #include <inttypes.h>
 #include <sys/types.h>
@@ -32,7 +31,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