~ubuntu-branches/ubuntu/vivid/unrar-nonfree/vivid

« back to all changes in this revision

Viewing changes to os.hpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2015-02-03 12:58:01 UTC
  • mfrom: (1.1.18) (5.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20150203125801-od6ev8cqy1er51vz
Tags: 1:5.2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include <shlobj.h>
43
43
#include <winioctl.h>
44
44
#include <wincrypt.h>
45
 
 
46
 
 
47
45
#include <wchar.h>
48
46
#include <wctype.h>
49
47
 
 
48
 
50
49
#endif // _WIN_ALL
51
50
 
52
51
#include <sys/types.h>
80
79
#include <time.h>
81
80
#include <signal.h>
82
81
 
 
82
 
83
83
#define SAVE_LINKS
84
84
 
85
85
#define ENABLE_ACCESS
88
88
#define DefLogName     L"rar.log"
89
89
 
90
90
 
91
 
#define PATHDIVIDER  "\\"
92
 
#define PATHDIVIDERW L"\\"
 
91
#define SPATHDIVIDER L"\\"
93
92
#define CPATHDIVIDER '\\'
94
93
#define MASKALL      L"*"
95
94
 
130
129
  #include <sys/sysctl.h>
131
130
#endif
132
131
#ifndef SFX_MODULE
133
 
  #include <sys/statvfs.h>
 
132
  #ifdef _ANDROID
 
133
    #include <sys/vfs.h>
 
134
    #define statvfs statfs
 
135
  #else
 
136
    #include <sys/statvfs.h>
 
137
  #endif
134
138
#endif
135
139
#if defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined(__APPLE__)
136
140
#endif
151
155
#include <utime.h>
152
156
#include <locale.h>
153
157
 
 
158
 
154
159
#ifdef  S_IFLNK
155
160
#define SAVE_LINKS
156
161
#endif
157
162
 
 
163
#if defined(__linux) && !defined (_ANDROID) || defined(__FreeBSD__)
 
164
#include <sys/time.h>
 
165
#define USE_LUTIMES
 
166
#endif
 
167
 
158
168
#define ENABLE_ACCESS
159
169
 
160
170
#define DefConfigName  L".rarrc"
161
171
#define DefLogName     L".rarlog"
162
172
 
163
173
 
164
 
#define PATHDIVIDER  "/"
165
 
#define PATHDIVIDERW L"/"
 
174
#define SPATHDIVIDER L"/"
166
175
#define CPATHDIVIDER '/'
167
176
#define MASKALL      L"*"
168
177
 
195
204
 
196
205
#endif
197
206
 
198
 
  typedef const char* MSGID;
 
207
  typedef const wchar* MSGID;
199
208
 
200
209
#ifndef SSE_ALIGNMENT // No SSE use and no special data alignment is required.
201
210
  #define SSE_ALIGNMENT 1
233
242
  #endif
234
243
#endif
235
244
 
236
 
#if !defined(BIG_ENDIAN) && defined(_WIN_ALL)
 
245
#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || defined(__i386__) || defined(__x86_64__)
237
246
// Allow not aligned integer access, increases speed in some operations.
238
 
#define ALLOW_NOT_ALIGNED_INT
239
 
#endif
240
 
 
241
 
#if defined(__sparc) || defined(sparc) || defined(__sparcv9)
242
 
// Prohibit not aligned access to data structures in text compression
243
 
// algorithm, increases memory requirements.
244
 
#define STRICT_ALIGNMENT_REQUIRED
 
247
#define ALLOW_MISALIGNED
245
248
#endif
246
249
 
247
250
#endif // _RAR_OS_