From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 68506BC58 for ; Wed, 15 Sep 2010 21:30:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQBAFu7kEzUGyoFkWdsb2JhbACUE41bFQEBAQEJCwoHEQMfx0uFQQSNNAw X-IronPort-AV: E=Sophos;i="4.56,372,1280700000"; d="scan'208";a="59338149" Received: from smtp5-g21.free.fr ([212.27.42.5]) by mail2-smtp-roc.national.inria.fr with ESMTP; 15 Sep 2010 21:30:18 +0200 Received: from apc.happyleptic.org (unknown [82.67.194.89]) by smtp5-g21.free.fr (Postfix) with ESMTP id 2FE40D4803E for ; Wed, 15 Sep 2010 21:30:11 +0200 (CEST) Received: from yeeloong (unknown [192.168.1.41]) by apc.happyleptic.org (Postfix) with SMTP id EA0D733812 for ; Wed, 15 Sep 2010 21:40:39 +0200 (CEST) Received: by yeeloong (sSMTP sendmail emulation); Wed, 15 Sep 2010 21:29:54 +0200 From: rixed@happyleptic.org Date: Wed, 15 Sep 2010 21:29:54 +0200 To: caml-list@yquem.inria.fr Subject: Checking for caml version from C Message-ID: <20100915192954.GA8555@yeeloong> Mail-Followup-To: rixed@happyleptic.org, caml-list@yquem.inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; ocaml:01 ocaml:01 runtime:01 preprocessor:01 writting:01 caml:02 caml:02 checking:02 blocking:04 i'd:06 standard:07 release:09 i'm:09 i'm:09 acquire:87 Hello ! I'm using ocaml 3.11 and 3.12 and I'm writting some C code that use caml_enter/leave_blocking_section. I'd like to know if there is a standard way to check for Ocaml version with the C preprocessor in order to switch to caml_release/acquire_runtime_system if version is >= 3.12 ? I grepped for VERSION in all the caml/*.h files without success. How am I supposed to do ?