File tree 3 files changed +19
-3
lines changed 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 8
8
#define STORAGE_LEVELDB_PORT_PORT_POSIX_H_
9
9
10
10
#undef PLATFORM_IS_LITTLE_ENDIAN
11
- #if defined(OS_MACOSX)
11
+ #if defined(OS_MACOSX) || defined(OS_IOS)
12
12
#include < machine/endian.h>
13
13
#if defined(__DARWIN_LITTLE_ENDIAN) && defined(__DARWIN_BYTE_ORDER)
14
14
#define PLATFORM_IS_LITTLE_ENDIAN \
52
52
53
53
#if defined(OS_MACOSX) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
54
54
defined (OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD) ||\
55
- defined(OS_ANDROID) || defined(OS_HPUX) || defined(CYGWIN)
55
+ defined(OS_ANDROID) || defined(OS_HPUX) || defined(CYGWIN) ||\
56
+ defined(OS_IOS)
56
57
// Use fread/fwrite/fflush on platforms without _unlocked variants
57
58
#define fread_unlocked fread
58
59
#define fwrite_unlocked fwrite
59
60
#define fflush_unlocked fflush
60
61
#endif
61
62
62
- #if defined(OS_MACOSX) || defined(OS_FREEBSD) ||\
63
+ #if defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_IOS) || \
63
64
defined (OS_OPENBSD) || defined(OS_DRAGONFLYBSD)
64
65
// Use fsync() on platforms without fdatasync()
65
66
#define fdatasync fsync
Original file line number Diff line number Diff line change 128
128
'-pthread'
129
129
]
130
130
}]
131
+ , ['OS == "ios"' , {
132
+ 'defines' : [
133
+ 'OS_IOS=1'
134
+ ]
135
+ , 'libraries' : []
136
+ , 'ccflags' : []
137
+ , 'xcode_settings' : {
138
+ 'WARNING_CFLAGS' : [
139
+ '-Wno-sign-compare'
140
+ , '-Wno-unused-variable'
141
+ , '-Wno-unused-function'
142
+ ]
143
+ }
144
+ }]
131
145
, ['OS == "mac"' , {
132
146
'defines' : [
133
147
'OS_MACOSX=1'
Original file line number Diff line number Diff line change 4
4
['OS=="linux"' , {'os_include' : 'linux' }]
5
5
, ['OS=="android"' , {'os_include' : 'linux' }]
6
6
, ['OS=="mac"' , {'os_include' : 'mac' }]
7
+ , ['OS=="ios"' , {'os_include' : 'mac' }]
7
8
, ['OS=="solaris"' , {'os_include' : 'solaris' }]
8
9
, ['OS=="win"' , {'os_include' : 'win32' }]
9
10
, ['OS=="freebsd"' , {'os_include' : 'freebsd' }]
You can’t perform that action at this time.
0 commit comments