Include libclui headers as _HELENOS_SOURCE
[harbours.git] / jainja / headers.patch
blob063bf492cbf10c5d2f2185afc059d9a769053190
1 --- jainja-0.8/platforms/c/src/native/jcgofile.h 2014-04-26 14:21:10.000000000 +0200
2 +++ jainja-0.8/platforms/c/src/native/jcgofile.h 2014-04-19 17:14:28.000000000 +0200
3 @@ -1116,7 +1116,8 @@
4 #endif
6 #define JCGO_BIGFSTAT_T struct stat64
7 +/*#define JCGO_BIGF_TSTAT(pathname, pst) JCGO_JNUTCHAR_E(stat64(JCGO_JNUTCHAR_C(pathname), pst), _wstat64(pathname, pst))*/
8 +#define JCGO_BIGF_TSTAT(pathname, pst) JCGO_JNUTCHAR_E(stat64(JCGO_JNUTCHAR_C(pathname), pst), stat64(pathname, pst))
9 -#define JCGO_BIGF_TSTAT(pathname, pst) JCGO_JNUTCHAR_E(stat64(JCGO_JNUTCHAR_C(pathname), pst), _wstat64(pathname, pst))
11 #ifndef JCGO_BIGFLSEEK_T
12 #ifdef _OFF64_T_DEFINED
13 @@ -1315,9 +1314,9 @@
15 long handle;
16 #ifdef JCGO_SYSWCHAR
17 +/* struct _wfinddata_t data; */
18 - struct _wfinddata_t data;
19 #else
20 +/* struct _finddata_t data; */
21 - struct _finddata_t data;
22 #endif
25 --- jainja-0.8/platforms/c/src/native/jcgoprop.h 2014-04-26 14:21:10.000000000 +0200
26 +++ jainja-0.8/platforms/c/src/native/jcgoprop.h 2014-04-19 17:14:28.000000000 +0200
27 @@ -91,6 +91,11 @@
28 #define JCGO_OSNAME_GETNAME(pdata) (*(pdata) = "", *(pdata))
29 #define JCGO_OSNAME_GETRELEASE(pdata) (*(pdata) = "", *(pdata))
31 +#define JCGO_OSVER_T int
32 +#define JCGO_OSVER_GET(pdata) (void)(*(pdata) = -1)
33 +#define JCGO_OSVER_MAJOR(pdata) (*(pdata))
34 +#define JCGO_OSVER_MINOR(pdata) 0
36 #else /* JCGO_NOSYSNAME */
38 #ifdef JCGO_UNIX