3eab9bf123285bcd6de631b2969cdcb01adfb787
[platform/upstream/libxslt.git] / libxslt / xsltwin32config.h
1 /*
2  * xsltwin32config.h: compile-time version informations for the XSLT engine
3  *                    when compiled on windows
4  *
5  * See Copyright for the status of this software.
6  *
7  * daniel@veillard.com
8  */
9
10 #ifndef __XML_XSLTWIN32CONFIG_H__
11 #define __XML_XSLTWIN32CONFIG_H__
12
13 #include <win32config.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /**
20  * LIBXSLT_DOTTED_VERSION:
21  *
22  * the version string like "1.2.3"
23  */
24 #define LIBXSLT_DOTTED_VERSION "1.0.2"
25
26 /**
27  * LIBXSLT_VERSION:
28  *
29  * the version number: 1.2.3 value is 1002003
30  */
31 #define LIBXSLT_VERSION 10002
32
33 /**
34  * LIBXSLT_VERSION_STRING:
35  *
36  * the version number string, 1.2.3 value is "1002003"
37  */
38 #define LIBXSLT_VERSION_STRING "10002"
39
40 /**
41  * WITH_XSLT_DEBUG:
42  *
43  * Activate the compilation of the debug reporting. Speed penalty
44  * is insignifiant and being able to run xsltpoc -v is useful. On
45  * by default
46  */
47 #if 1
48 #define WITH_XSLT_DEBUG
49 #endif
50
51 /**
52  * ATTRIBUTE_UNUSED:
53  *
54  * This macro is used to flag unused function parameters to GCC, useless here
55  */
56 #ifndef ATTRIBUTE_UNUSED
57 #define ATTRIBUTE_UNUSED
58 #endif
59
60 /**
61  * LIBXSLT_PUBLIC:
62  *
63  * This macro is needed on Win32 when using MSVC. It enables the client code
64  * to access exported variables. It should expand to nothing when compiling
65  * this library itself, but must expand to __declspec(dllimport) when a
66  * client includes the library header and that only if it links dynamically
67  * against this library.
68  */
69 #if !defined LIBXSLT_PUBLIC
70 #if defined _MSC_VER && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC
71 #define LIBXSLT_PUBLIC __declspec(dllimport)
72 #else
73 #define LIBXSLT_PUBLIC 
74 #endif
75 #endif
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* __XML_XSLTWIN32CONFIG_H__ */