projects
/
SXSI
/
xpathcomp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
29fa227
)
Use attribute force_align_arg_pointer only for architectures where it
author
Kim Nguyễn
<kn@lri.fr>
Fri, 26 Oct 2012 11:55:32 +0000
(13:55 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Fri, 26 Oct 2012 12:14:37 +0000
(14:14 +0200)
is defined (currently x86).
src/common_stub.hpp
patch
|
blob
|
history
diff --git
a/src/common_stub.hpp
b/src/common_stub.hpp
index
b771f33
..
ae672da
100644
(file)
--- a/
src/common_stub.hpp
+++ b/
src/common_stub.hpp
@@
-19,8
+19,11
@@
extern "C" {
#define NoAlloc
//Must be used in front of every function that is called from OCaml.
-
-#define ML_BINDING extern "C" __attribute__ ((force_align_arg_pointer))
+#if _M_IX86 || __i386
+#define ML_BINDING extern "C" __attribute__ ((force_align_arg_pointer))
+#else
+#define ML_BINDING extern "C"
+#endif
void register_custom_(char* name,