mirror of
https://github.com/anope/anope.git
synced 2026-06-25 21:46:37 +02:00
f85457d2a4
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1410 5417fbe8-f217-4b02-8779-1006273d7864
46 lines
684 B
C
46 lines
684 B
C
#include "version.h"
|
|
|
|
#ifndef _WIN32
|
|
#define E extern
|
|
#define I extern
|
|
#else
|
|
#ifndef MODULE_COMPILE
|
|
#define E extern __declspec(dllexport)
|
|
#define I extern __declspec(dllimport)
|
|
#else
|
|
#define E extern __declspec(dllimport)
|
|
#define I extern __declspec(dllexport)
|
|
#endif
|
|
#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;
|
|
}
|
|
}
|