summaryrefslogtreecommitdiff
path: root/src/mod_version.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:13 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:13 +0000
commit63304b3a01a237cff2943373e4467dd678eadb53 (patch)
tree92fd01606d977400383f681be343bb6bf4c31e1f /src/mod_version.c
parenta03ece92ed1f092995d8bb1cc2c56b188da00ec8 (diff)
Add MODULE_INIT workaround for modules, so they are loadable. Inspired by InspIRCd solution to this.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1272 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mod_version.c')
-rw-r--r--src/mod_version.c40
1 files changed, 23 insertions, 17 deletions
diff --git a/src/mod_version.c b/src/mod_version.c
index e314b8b42..f8327d54f 100644
--- a/src/mod_version.c
+++ b/src/mod_version.c
@@ -13,24 +13,30 @@
#endif
#endif
-E int getAnopeBuildVersion();
-E int getAnopeMajorVersion();
-E int getAnopeMinorVersion();
-E int getAnopePatchVersion();
+extern "C"
+{
+ E int getAnopeBuildVersion();
+ E int getAnopeMajorVersion();
+ E int getAnopeMinorVersion();
+ E int getAnopePatchVersion();
-int getAnopeBuildVersion() {
- return VERSION_BUILD;
-}
+ int getAnopeBuildVersion()
+ {
+ return VERSION_BUILD;
+ }
-int getAnopeMajorVersion() {
- return VERSION_MAJOR;
-}
+ int getAnopeMajorVersion()
+ {
+ return VERSION_MAJOR;
+ }
-int getAnopeMinorVersion() {
- return VERSION_MINOR;
-}
-
-int getAnopePatchVersion() {
- return VERSION_PATCH;
-}
+ int getAnopeMinorVersion()
+ {
+ return VERSION_MINOR;
+ }
+ int getAnopePatchVersion()
+ {
+ return VERSION_PATCH;
+ }
+} \ No newline at end of file