ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
clipm_compatibility_cpl.h
Go to the documentation of this file.
1
7
20
21#ifndef CLIPM_COMPATIBILITY_CPL_H
22#define CLIPM_COMPATIBILITY_CPL_H
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29
30/*-----------------------------------------------------------------------------
31 Defines
32 -----------------------------------------------------------------------------*/
33
34#ifndef CPL_VERSION_CODE
35 #error "CPL_VERSION_CODE not defined in cpl_version.h"
36#endif
37
42#define CLIPM_GET_INSTALLED_CPL_VERSION CPL_VERSION_CODE/65536
43
44#if CLIPM_GET_INSTALLED_CPL_VERSION < 3
45 #error "Incompatible CPL version found (too old)."
46#endif
47
48/*#if (CPL_VERSION_CODE/65536) >= 4
49 #define CLIPM_GET_INSTALLED_CPL_VERSION 4
50 *#warning "Compiling for CPL version 4."*
51#elif (CPL_VERSION_CODE/65536) >= 3
52 #define CLIPM_GET_INSTALLED_CPL_VERSION 3
53 *#warning "Compiling for CPL version 3."*
54#else
55 #error "Incompatible CPL version found (too old)."
56#endif
57*/
58
59/*----------------------------------------------------------------------------*/
61#endif /* CLIPM_COMPATIBILITY_CPL_H */