My favorites
▼
|
Sign in
hxcpp
Runtime files for c++ backend for haxe
Project Home
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
22
attachment: hxcpp-64bit-r157.patch
(2.6 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Index: include/hx/CFFI.h
===================================================================
--- include/hx/CFFI.h (revision 157)
+++ include/hx/CFFI.h (working copy)
@@ -4,6 +4,9 @@
#include "OS.h"
#include <stdio.h>
#include <stdlib.h>
+#ifdef NEKO_GCC
+#include <cstring>
+#endif
#ifdef IMPLEMENT_API
Index: runtime/BuildLibs.xml
===================================================================
--- runtime/BuildLibs.xml (revision 157)
+++ runtime/BuildLibs.xml (working copy)
@@ -12,6 +12,7 @@
<files id="std" dir="${RUNTIME}">
+ <compilerflag value="-fPIC" if="HXCPP_M64"/>
<depend name="${HXCPP}/include/hx/Macros.h"/>
<depend name="${HXCPP}/include/hx/CFFI.h"/>
@@ -45,6 +46,7 @@
<compilerflag value="-DPCRE_STATIC"/>
<compilerflag value="-I${PCRE_DIR}"/>
+ <compilerflag value="-fPIC" if="HXCPP_M64"/>
<file name="libs/regexp/RegExp.cpp"/>
@@ -85,6 +87,7 @@
<depend name="${HXCPP}/include/hx/CFFI.h"/>
<compilerflag value="-I${ZLIB_DIR}"/>
+ <compilerflag value="-fPIC" if="HXCPP_M64"/>
<file name="libs/zlib/ZLib.cpp"/>
@@ -115,6 +118,7 @@
<depend name="libs/nekoapi/neko.h"/>
<depend name="${HXCPP}/include/hx/Macros.h"/>
<depend name="${HXCPP}/include/hx/CFFI.h"/>
+ <compilerflag value="-fPIC" if="HXCPP_M64"/>
<file name="libs/nekoapi/NekoAPI.cpp"/>
</files>
Index: runtime/libs/std/Socket.cpp
===================================================================
--- runtime/libs/std/Socket.cpp (revision 157)
+++ runtime/libs/std/Socket.cpp (working copy)
@@ -34,6 +34,7 @@
# include <netdb.h>
# include <fcntl.h>
# include <errno.h>
+# include <stdint.h>
# include <stdio.h>
# include <poll.h>
typedef int SOCKET;
@@ -67,7 +68,11 @@
DEFINE_KIND(k_socket);
DEFINE_KIND(k_poll);
+#ifndef NEKO_64BITS
+typedef uint64_t socket_int;
+#else
typedef int socket_int;
+#endif
#define val_sock(o) ((SOCKET)(socket_int)val_data(o))
#define val_poll(o) ((polldata*)val_data(o))
Index: src/hx/StdLibs.cpp
===================================================================
--- src/hx/StdLibs.cpp (revision 157)
+++ src/hx/StdLibs.cpp (working copy)
@@ -12,8 +12,10 @@
#include <map>
#include <time.h>
#include <limits>
+#ifdef NEKO_GCC
+#include <cstdio>
+#endif
-
namespace hx
{
Index: src/hx/GCInternal.cpp
===================================================================
--- src/hx/GCInternal.cpp (revision 157)
+++ src/hx/GCInternal.cpp (working copy)
@@ -3,6 +3,10 @@
#include <hx/GC.h>
#include <hx/Thread.h>
+#ifdef NEKO_GCC
+#include <cstdio>
+#endif
+
char **gMovedPtrs = 0;
int gByteMarkID = 0;
int gMarkID = 0;
Powered by
Google Project Hosting