blob: 98c27d259a1cd7985303581e5c6e77d474ac9847 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include "version.h"
#ifdef _WIN32
# ifdef MODULE_COMPILE
# define E extern __declspec(dllexport)
# else
# define E extern __declspec(dllimport)
# endif
#else
# define E extern
#endif
extern "C"
{
E int getAnopeBuildVersion();
E int getAnopeMajorVersion();
E int getAnopeMinorVersion();
E int getAnopePatchVersion();
int getAnopeBuildVersion()
{
#if 0
return VERSION_BUILD;
#endif
return 0; // XXX
}
int getAnopeMajorVersion()
{
return VERSION_MAJOR;
}
int getAnopeMinorVersion()
{
return VERSION_MINOR;
}
int getAnopePatchVersion()
{
return VERSION_PATCH;
}
}
|