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:
parent
65f2111915
commit
48d9e3bc02
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue