2 * Copyright 2001-2007 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * Library version macros and constants
23 #ifndef __shibsp_version_h__
24 #define __shibsp_version_h__
26 // This is all based on Xerces, on the theory it might be useful to
27 // support this kind of stuff in the future. If they ever yank some
28 // of this stuff, it can be copied into here.
30 #include <xercesc/util/XercesVersion.hpp>
32 // ---------------------------------------------------------------------------
33 // V E R S I O N S P E C I F I C A T I O N
36 * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH OPENSAML VERSION
37 * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE
40 #define SHIBSP_VERSION_MAJOR 1
41 #define SHIBSP_VERSION_MINOR 0
42 #define SHIBSP_VERSION_REVISION 0
44 /** DO NOT MODIFY BELOW THIS LINE */
47 * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING:
49 * gShibSPVersionStr, gShibSPFullVersionStr, gShibSPMajVersion, gShibSPMinVersion, gShibSPRevision
52 // ---------------------------------------------------------------------------
53 // V E R S I O N I N F O R M A T I O N
55 // ShibSP version strings; these particular macros cannot be used for
56 // conditional compilation as they are not numeric constants
58 #define SHIBSP_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
59 #define SHIBSP_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
60 #define SHIBSP_FULLVERSIONNUM INVK_CAT3_SEP_NIL(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
61 #define SHIBSP_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR)
63 const char* const gShibSPVersionStr = SHIBSP_VERSIONSTR;
64 const char* const gShibSPFullVersionStr = SHIBSP_FULLVERSIONSTR;
65 const unsigned int gShibSPMajVersion = SHIBSP_VERSION_MAJOR;
66 const unsigned int gShibSPMinVersion = SHIBSP_VERSION_MINOR;
67 const unsigned int gShibSPRevision = SHIBSP_VERSION_REVISION;
69 // ShibSP version numeric constants that can be used for conditional
70 // compilation purposes.
72 #define _SHIBSP_VERSION CALC_EXPANDED_FORM (SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
74 #endif /* __shibsp_version_h__ */