From bc73d93718fbc47f33fb6b9780fc0af1b8bb916a Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 20 Aug 2008 11:47:52 +0000 Subject: properly coreexport the getcpu() function etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10184 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_stats.cpp | 1 + win/inspircd_win32wrapper.h | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index d952350ea..b4e3d64be 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -20,6 +20,7 @@ #endif #else #include + #include "inspircd_win32wrapper.h" #pragma comment(lib, "psapi.lib") #endif diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 86382157e..600882839 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -196,22 +196,22 @@ class ValueItem; class ServerConfig; /* Look up the nameserver in use from the registry on windows */ -std::string FindNameServerWin(); +CoreExport std::string FindNameServerWin(); /* Clear a windows console */ -void ClearConsole(); +CoreExport void ClearConsole(); -DWORD WindowsForkStart(InspIRCd* Instance); +CoreExport DWORD WindowsForkStart(InspIRCd* Instance); -void WindowsForkKillOwner(InspIRCd* Instance); +CoreExport void WindowsForkKillOwner(InspIRCd* Instance); -void ChangeWindowsSpecificPointers(InspIRCd* Instance); +CoreExport void ChangeWindowsSpecificPointers(InspIRCd* Instance); -bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data); +CoreExport bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data); -bool initwmi(); -void donewmi(); -int getcpu(); +CoreExport bool initwmi(); +CoreExport void donewmi(); +CoreExport int getcpu(); #endif -- cgit v1.2.3