swig/swig-ocaml-int64.patch
Dirk Mueller d3fa97065a Accepting request 397560 from home:olh:branches:devel:tools:building
- Add disabled build conditional for ocaml support (fate#320836)
- Add swig-ocaml-int64.patch (ocaml PR#6517, fate#320836)

- set CCSHARED to "-fPIC" on s390/s390x

OBS-URL: https://build.opensuse.org/request/show/397560
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=91
2016-05-24 04:54:17 +00:00

20 lines
505 B
Diff

ocaml pr#6517
---
Lib/ocaml/ocamldec.swg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/Lib/ocaml/ocamldec.swg
+++ b/Lib/ocaml/ocamldec.swg
@@ -101,9 +101,9 @@ SWIGEXT {
#ifndef ARCH_ALIGN_INT64
-#define SWIG_Int64_val(v) (*((int64 *) SWIG_Data_custom_val(v)))
+#define SWIG_Int64_val(v) (*((int64_t *) SWIG_Data_custom_val(v)))
#else
-CAMLextern int64 Int64_val(caml_value_t v);
+CAMLextern int64_t Int64_val(caml_value_t v);
#define SWIG_Int64_val(v) Int64_val(v)
#endif