Fix OCaml version detection if caml/version.h is not available

Needed for OCaml versions < 4.02.0
Issue #1403
This commit is contained in:
William S Fulton 2019-01-12 13:42:29 +00:00
commit 48d9e3bc02

View file

@ -23,7 +23,13 @@ SWIGEXT {
#include <caml/callback.h>
#include <caml/fail.h>
#include <caml/misc.h>
#if defined(CAMLassert)
/* Both this macro and version.h were introduced in version 4.02.0 */
#include <caml/version.h>
#else
#define OCAML_VERSION 0 /* Unknown, but < 40200 */
#endif
#define caml_array_set swig_caml_array_set