Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Conditional compilation wrt OCaml version?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-01-26 (21:40)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: Conditional compilation wrt OCaml version?
On 26-01-2009, David Rajchenbach-Teller <> wrote:
>       Dear list,
>   Working on Batteries, we're faced with a few places where we'd like to
> perform conditional compilation depending on the version of OCaml being
> used. We could probably do this with Camlp4, cpp, Autoconf hackery, etc.
> -- but first, we need to decide on which of these options we'll adopt.
> Any suggestion?

There is optcomp:

The example in README should talk to you directly.

Sylvain Le Gall