summaryrefslogtreecommitdiff
path: root/otherlibs
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2003-07-08 14:24:07 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2003-07-08 14:24:07 +0000
commitc036c3c7079375618cc10e413ef7f4eb619fd6a4 (patch)
tree826b334423244547a1aa3759b9647644826342ca /otherlibs
parent7bc0c73eb8372005228326ad48ad5bd43e10cb13 (diff)
downloadocaml-c036c3c7079375618cc10e413ef7f4eb619fd6a4.tar.gz
Suite export alloc_bigarray
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5674 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs')
-rw-r--r--otherlibs/bigarray/Makefile.nt2
-rw-r--r--otherlibs/bigarray/bigarray.h10
2 files changed, 9 insertions, 3 deletions
diff --git a/otherlibs/bigarray/Makefile.nt b/otherlibs/bigarray/Makefile.nt
index 3f6ca6a6f3..b4a8dc3058 100644
--- a/otherlibs/bigarray/Makefile.nt
+++ b/otherlibs/bigarray/Makefile.nt
@@ -16,7 +16,7 @@
include ../../config/Makefile
CC=$(BYTECC)
-CFLAGS=-I../../byterun -I../win32unix
+CFLAGS=-I../../byterun -I../win32unix -DIN_OCAML_BIGARRAY
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../win32unix
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../win32unix
diff --git a/otherlibs/bigarray/bigarray.h b/otherlibs/bigarray/bigarray.h
index 76a45a9c78..17b2dfe430 100644
--- a/otherlibs/bigarray/bigarray.h
+++ b/otherlibs/bigarray/bigarray.h
@@ -68,8 +68,14 @@ struct caml_bigarray {
#define Data_bigarray_val(v) (Bigarray_val(v)->data)
-CAMLextern value alloc_bigarray(int flags, int num_dims, void * data, long * dim);
-CAMLextern value alloc_bigarray_dims(int flags, int num_dims, void * data,
+#if defined(IN_OCAML_BIGARRAY)
+#define CAMLBAextern CAMLexport
+#else
+#define CAMLBAextern CAMLextern
+#endif
+
+CAMLBAextern value alloc_bigarray(int flags, int num_dims, void * data, long * dim);
+CAMLBAextern value alloc_bigarray_dims(int flags, int num_dims, void * data,
... /*dimensions, with type long */);
#endif