1/* -*- C++ -*-
2 * File: libraw_version.h
3 * Copyright 2008-2013 LibRaw LLC (info@libraw.org)
4 * Created: Mon Sept 8, 2008
5 *
6 * LibRaw C++ interface
7 *
8
9LibRaw is free software; you can redistribute it and/or modify
10it under the terms of the one of three licenses as you choose:
11
121. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
13(See the file LICENSE.LGPL provided in LibRaw distribution archive for details).
14
152. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
16(See the file LICENSE.CDDL provided in LibRaw distribution archive for details).
17
183. LibRaw Software License 27032010
19 (See the file LICENSE.LibRaw.pdf provided in LibRaw distribution archive for details).
20
21 */
22
23#ifndef __VERSION_H
24#define __VERSION_H
25
26#define LIBRAW_MAJOR_VERSION 0
27#define LIBRAW_MINOR_VERSION 16
28#define LIBRAW_PATCH_VERSION 0
29#define LIBRAW_VERSION_TAIL Release
30
31#define LIBRAW_SHLIB_CURRENT 10
32#define LIBRAW_SHLIB_REVISION 0
33#define LIBRAW_SHLIB_AGE 0
34
35#define _LIBRAW_VERSION_MAKE(a,b,c,d) #a"."#b"."#c"-"#d
36#define LIBRAW_VERSION_MAKE(a,b,c,d) _LIBRAW_VERSION_MAKE(a,b,c,d)
37
38#define LIBRAW_VERSION_STR LIBRAW_VERSION_MAKE(LIBRAW_MAJOR_VERSION,LIBRAW_MINOR_VERSION,LIBRAW_PATCH_VERSION,LIBRAW_VERSION_TAIL)
39
40#define LIBRAW_MAKE_VERSION(major,minor,patch) \
41 (((major) << 16) | ((minor) << 8) | (patch))
42
43#define LIBRAW_VERSION \
44 LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION,LIBRAW_MINOR_VERSION,LIBRAW_PATCH_VERSION)
45
46#define LIBRAW_CHECK_VERSION(major,minor,patch) \
47 ( LibRaw::versionNumber() >= LIBRAW_MAKE_VERSION(major,minor,patch) )
48
49#define LIBRAW_RUNTIME_CHECK_VERSION_EXACT() \
50 ( (LibRaw::versionNumber() & 0xffff00) == LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION,LIBRAW_MINOR_VERSION,0) )
51
52#define LIBRAW_RUNTIME_CHECK_VERSION_NOTLESS() \
53 ( (LibRaw::versionNumber() & 0xffff00) >= LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION,LIBRAW_MINOR_VERSION,0) )
54
55#define LIBRAW_COMPILE_CHECK_VERSION(major,minor) \
56 (LIBRAW_MAKE_VERSION(major,minor,0) == (LIBRAW_VERSION & 0xffff00))
57
58#define LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(major,minor) \
59 (LIBRAW_MAKE_VERSION(major,minor,0) <= (LIBRAW_VERSION & 0xffff00))
60
61
62#endif
63