OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d70ec0c
)
Fix building issues on Android 5.0
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 20 Oct 2014 10:15:12 +0000
(18:15 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Thu, 6 Nov 2014 10:17:23 +0000
(18:17 +0800)
libexfat/exfat.h
patch
|
blob
|
history
diff --git
a/libexfat/exfat.h
b/libexfat/exfat.h
index
7a6f57a
..
fdd7136
100644
(file)
--- a/
libexfat/exfat.h
+++ b/
libexfat/exfat.h
@@
-24,11
+24,6
@@
#ifndef EXFAT_H_INCLUDED
#define EXFAT_H_INCLUDED
-#if defined(__ANDROID__)
-#define _OFF_T_DEFINED_
-typedef long long off_t;
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@@
-39,6
+34,11
@@
typedef long long off_t;
#include "exfatfs.h"
#include "version.h"
+#ifdef __ANDROID__
+#undef off_t
+#define off_t off64_t
+#endif
+
#define EXFAT_NAME_MAX 256
#define EXFAT_ATTRIB_CONTIGUOUS 0x10000
#define EXFAT_ATTRIB_CACHED 0x20000