|
a/src/common/conf_post.h |
|
b/src/common/conf_post.h |
|
... |
|
... |
39 |
#define fseeko _fseeki64
|
39 |
#define fseeko _fseeki64
|
40 |
#define ftello (off_t)_ftelli64
|
40 |
#define ftello (off_t)_ftelli64
|
41 |
#define ftruncate _chsize_s
|
41 |
#define ftruncate _chsize_s
|
42 |
#define PATH_MAX MAX_PATH
|
42 |
#define PATH_MAX MAX_PATH
|
43 |
#define RCL_ICONV_INBUF_CONST 1
|
43 |
#define RCL_ICONV_INBUF_CONST 1
|
44 |
#else
|
44 |
#define HAVE_STRUCT_TIMESPEC
|
45 |
// Gminw
|
45 |
#define strdup _strdup
|
|
|
46 |
#define timegm _mkgmtime
|
|
|
47 |
|
|
|
48 |
#else // End _MSC_VER -> Gminw
|
|
|
49 |
|
|
|
50 |
#define timegm portable_timegm
|
|
|
51 |
|
46 |
#undef RCL_ICONV_INBUF_CONST
|
52 |
#undef RCL_ICONV_INBUF_CONST
|
47 |
#endif
|
|
|
48 |
|
53 |
|
|
|
54 |
#endif // GMinw only
|
49 |
|
55 |
|
50 |
typedef int pid_t;
|
56 |
typedef int pid_t;
|
51 |
inline int readlink(const char *cp, void *buf, int cnt) {
|
57 |
inline int readlink(const char *cp, void *buf, int cnt) {
|
52 |
return -1;
|
58 |
return -1;
|
53 |
}
|
59 |
}
|
54 |
#define HAVE_STRUCT_TIMESPEC
|
|
|
55 |
#define strdup _strdup
|
|
|
56 |
#define timegm _mkgmtime
|
|
|
57 |
|
|
|
58 |
|
60 |
|
59 |
#define MAXPATHLEN PATH_MAX
|
61 |
#define MAXPATHLEN PATH_MAX
|
60 |
typedef DWORD32 u_int32_t;
|
62 |
typedef DWORD32 u_int32_t;
|
61 |
typedef DWORD64 u_int64_t;
|
63 |
typedef DWORD64 u_int64_t;
|
62 |
typedef unsigned __int8 u_int8_t;
|
64 |
typedef unsigned __int8 u_int8_t;
|
|
... |
|
... |
65 |
#define strcasecmp _stricmp
|
67 |
#define strcasecmp _stricmp
|
66 |
#define chdir _chdir
|
68 |
#define chdir _chdir
|
67 |
|
69 |
|
68 |
#define R_OK 4
|
70 |
#define R_OK 4
|
69 |
#define W_OK 2
|
71 |
#define W_OK 2
|
|
|
72 |
#ifndef X_OK
|
70 |
#define X_OK 4
|
73 |
#define X_OK 4
|
|
|
74 |
#endif
|
71 |
#define RECOLL_DATADIR "C:\\recoll\\"
|
75 |
#define RECOLL_DATADIR "C:\\recoll\\"
|
72 |
#define S_ISLNK(X) false
|
76 |
#define S_ISLNK(X) false
|
73 |
#define lstat stat
|
77 |
#define lstat stat
|
74 |
#define timegm _mkgmtime
|
|
|
75 |
#endif
|
78 |
#endif
|
76 |
|
79 |
|
77 |
|
80 |
|