mirror of
https://github.com/anope/anope.git
synced 2026-06-26 20:36:38 +02:00
2e41f43ace
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1799 5417fbe8-f217-4b02-8779-1006273d7864
43 lines
595 B
C
43 lines
595 B
C
#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;
|
|
}
|
|
}
|