PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/FreeImage/Source/LibRawLite/libraw/libraw_version.h

https://bitbucket.org/cabalistic/ogredeps/
C++ Header | 62 lines | 27 code | 14 blank | 21 comment | 2 complexity | a42df4daf5fb1bf22173373139d60238 MD5 | raw file
 1/* -*- C++ -*-
 2 * File: libraw_version.h
 3 * Copyright 2008-2010 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  14
28#define LIBRAW_PATCH_VERSION  5
29#define LIBRAW_VERSION_TAIL   Release
30
31#define LIBRAW_SHLIB_CURRENT  	5
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