Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / msc_release.h
1 /*
2  * ModSecurity for Apache 2.x, http://www.modsecurity.org/
3  * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
4  *
5  * This product is released under the terms of the General Public Licence,
6  * version 2 (GPLv2). Please refer to the file LICENSE (included with this
7  * distribution) which contains the complete text of the licence.
8  *
9  * There are special exceptions to the terms and conditions of the GPL
10  * as it is applied to this software. View the full text of the exception in
11  * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
12  * distribution.
13  *
14  * If any of the files related to licensing are missing or if you have any
15  * other questions related to licensing please contact Breach Security, Inc.
16  * directly using the email address support@breach.com.
17  *
18  */
19 #ifndef _MSC_RELEASE_H_
20 #define _MSC_RELEASE_H_
21
22 #include <stdlib.h>
23 #include <string.h>
24
25 /* ENH: Clean this mess up by detecting this is possible */
26 #if !(defined(_AIX) || defined(WIN32) || defined(CYGWIN) || defined(NETWARE) || defined(SOLARIS2) || defined(OSF1))
27 #define DSOLOCAL __attribute__((visibility("hidden")))
28 #else
29 #define DSOLOCAL
30 #endif
31
32 #if defined(DEBUG_MEM)
33 /* Nothing Yet */
34 #endif
35
36 /* For GNU C, tell the compiler to check printf like formatters */
37 #if (defined(__GNUC__) && !defined(SOLARIS2))
38 #define PRINTF_ATTRIBUTE(a,b) __attribute__((format (printf, a, b)))
39 #else
40 #define PRINTF_ATTRIBUTE(a,b)
41 #endif
42
43 typedef struct modsec_build_type_rec {
44     const char * name;
45     int          val;
46 } modsec_build_type_rec;
47 extern DSOLOCAL modsec_build_type_rec modsec_build_type[];
48
49 #define MODSEC_VERSION_MAJOR       "2"
50 #define MODSEC_VERSION_MINOR       "5"
51 #define MODSEC_VERSION_MAINT       "11"
52 #define MODSEC_VERSION_TYPE        ""
53 #define MODSEC_VERSION_RELEASE     ""
54
55 #define MODSEC_VERSION_SUFFIX MODSEC_VERSION_TYPE MODSEC_VERSION_RELEASE
56
57 #define MODSEC_VERSION \
58   MODSEC_VERSION_MAJOR "." MODSEC_VERSION_MINOR "." MODSEC_VERSION_MAINT \
59   MODSEC_VERSION_SUFFIX
60
61 /* Apache Module Defines */
62 #define MODSEC_MODULE_NAME "ModSecurity for Apache"
63 #define MODSEC_MODULE_VERSION MODSEC_VERSION
64 #define MODSEC_MODULE_NAME_FULL MODSEC_MODULE_NAME "/" MODSEC_MODULE_VERSION " (http://www.modsecurity.org/)"
65
66 int DSOLOCAL get_modsec_build_type(const char *name);
67
68 #endif /* _MSC_RELEASE_H_ */