1 // Created on: 2002-07-09
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 /*======================================================================
18 // Purpose: Defines macros identifying current version of Open CASCADE
20 // OCC_VERSION_MAJOR : (integer) number identifying major version
21 // OCC_VERSION_MINOR : (integer) number identifying minor version
22 // OCC_VERSION_MAINTENANCE : (integer) number identifying maintenance version
23 // OCC_VERSION_DEVELOPMENT : (string) if defined, indicates development or modified version
24 // OCC_VERSION : (real) complete number (major.minor)
25 // OCC_VERSION_STRING : (string) short version number ("major.minor")
26 // OCC_VERSION_COMPLETE : (string) complete version number ("major.minor.maintenance")
27 // OCC_VERSION_STRING_EXT : (string) extended version ("major.minor.maintenance.development")
28 // OCC_VERSION_HEX : (hex) complete number as hex, two positions per each of major, minor, and patch number
30 //======================================================================*/
32 #ifndef _Standard_Version_HeaderFile
33 #define _Standard_Version_HeaderFile
35 // Primary definitions
36 #define OCC_VERSION_MAJOR 6
37 #define OCC_VERSION_MINOR 8
38 #define OCC_VERSION_MAINTENANCE 0
40 //! This macro must be commented in official release, and set to non-empty
41 //! string in other situations, to identify specifics of the version, e.g.:
42 //! - "dev" for official (certified) version (master branch) between releases
43 //! - "beta..." or "rc..." for beta releases or release candidates
44 //! - "project..." for version containing project-specific fixes
45 #define OCC_VERSION_DEVELOPMENT "dev"
47 // Derived (manually): version as real and string (major.minor)
48 #define OCC_VERSION 6.8
49 #define OCC_VERSION_STRING "6.8"
50 #define OCC_VERSION_COMPLETE "6.8.0"
52 //! Derived: extended version as string ("major.minor.maintenance.dev")
53 #ifdef OCC_VERSION_DEVELOPMENT
54 #define OCC_VERSION_STRING_EXT OCC_VERSION_COMPLETE "." OCC_VERSION_DEVELOPMENT
56 #define OCC_VERSION_STRING_EXT OCC_VERSION_COMPLETE
59 // Derived: complete version as hex (0x0'major'0'minor'0'maintenance')
60 #define OCC_VERSION_HEX (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE)
62 #endif /* _Standard_Version_HeaderFile */