~vojtech-horky/helenos/coastline-qemu

« back to all changes in this revision

Viewing changes to jainja/headers.patch

  • Committer: Vojtech Horky
  • Date: 2017-08-07 14:28:40 UTC
  • mfrom: (104.1.27 coastline)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170807142840-nj7i0b2i0py5o5qh
MergeĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
5
 
 
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))
 
10
 
 
11
 #ifndef JCGO_BIGFLSEEK_T
 
12
 #ifdef _OFF64_T_DEFINED
 
13
@@ -1315,9 +1314,9 @@
 
14
 {
 
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
 
23
 };
 
24
 
 
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))
 
30
 
 
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
 
35
+
 
36
 #else /* JCGO_NOSYSNAME */
 
37
 
 
38
 #ifdef JCGO_UNIX