"Fossies" - the Fresh Open Source Software Archive

Member "digikam-6.3.0/core/libs/rawengine/libraw/libraw/libraw_version.h" (4 Sep 2019, 2312 Bytes) of package /linux/misc/digikam-6.3.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "libraw_version.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 6.2.0_vs_6.3.0.

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