ifw-odp 5.0.0
Loading...
Searching...
No Matches
clipm_compatibility_cpl.h
Go to the documentation of this file.
1
2/*********************************************************************
3 * E.S.O. - VLT project
4 *
5 * "@(#) $Id: clipm_compatibility_cpl.h 166626 2008-04-24 15:49:12Z hlorch $"
6 *
7 * Define the compatible CPL version
8 *
9 * who when what
10 * -------- ---------- ----------------------------------------------
11 * hlorch 2007-08-16 created
12 */
13
27#ifndef CLIPM_COMPATIBILITY_CPL_H
28#define CLIPM_COMPATIBILITY_CPL_H
29
30/*-----------------------------------------------------------------------------
31 Includes
32 -----------------------------------------------------------------------------*/
33
34#include <cpl.h>
35
36/*-----------------------------------------------------------------------------
37 Defines
38 -----------------------------------------------------------------------------*/
39
40#ifndef CPL_VERSION_CODE
41 #error "CPL_VERSION_CODE not defined in cpl_version.h"
42#endif
43
48#define CLIPM_GET_INSTALLED_CPL_VERSION CPL_VERSION_CODE/65536
49
50#if CLIPM_GET_INSTALLED_CPL_VERSION < 3
51 #error "Incompatible CPL version found (too old)."
52#endif
53
54/*#if (CPL_VERSION_CODE/65536) >= 4
55 #define CLIPM_GET_INSTALLED_CPL_VERSION 4
56 *#warning "Compiling for CPL version 4."*
57#elif (CPL_VERSION_CODE/65536) >= 3
58 #define CLIPM_GET_INSTALLED_CPL_VERSION 3
59 *#warning "Compiling for CPL version 3."*
60#else
61 #error "Incompatible CPL version found (too old)."
62#endif
63*/
64
65/*----------------------------------------------------------------------------*/
67#endif /* CLIPM_COMPATIBILITY_CPL_H */