aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-02 22:26:12 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-02 22:26:12 -0300
commit2a6fe27cade65482e2479629661b5208c37ef884 (patch)
tree53404195477ee085fe15df978bb1d0f2ee004d3f /src
parentf612b1cb4801285cc1d9446cd91a07291ffc746e (diff)
Core/Game: fix dynamic linking
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Time/GameTime.h12
-rw-r--r--src/server/game/Time/UpdateTime.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Time/GameTime.h b/src/server/game/Time/GameTime.h
index b65f386b5d6..efe73a6a0b7 100644
--- a/src/server/game/Time/GameTime.h
+++ b/src/server/game/Time/GameTime.h
@@ -25,22 +25,22 @@
namespace GameTime
{
// Server start time
- time_t GetStartTime();
+ TC_GAME_API time_t GetStartTime();
// Current server time (unix) in seconds
- time_t GetGameTime();
+ TC_GAME_API time_t GetGameTime();
// Milliseconds since server start
- uint32 GetGameTimeMS();
+ TC_GAME_API uint32 GetGameTimeMS();
/// Current chrono system_clock time point
- std::chrono::system_clock::time_point GetGameTimeSystemPoint();
+ TC_GAME_API std::chrono::system_clock::time_point GetGameTimeSystemPoint();
/// Current chrono steady_clock time point
- std::chrono::steady_clock::time_point GetGameTimeSteadyPoint();
+ TC_GAME_API std::chrono::steady_clock::time_point GetGameTimeSteadyPoint();
/// Uptime (in secs)
- uint32 GetUptime();
+ TC_GAME_API uint32 GetUptime();
void UpdateGameTimers();
}
diff --git a/src/server/game/Time/UpdateTime.h b/src/server/game/Time/UpdateTime.h
index 6cd330bf148..008c6b20eb5 100644
--- a/src/server/game/Time/UpdateTime.h
+++ b/src/server/game/Time/UpdateTime.h
@@ -56,7 +56,7 @@ class TC_GAME_API UpdateTime
uint32 _recordedTime;
};
-class WorldUpdateTime : public UpdateTime
+class TC_GAME_API WorldUpdateTime : public UpdateTime
{
public:
WorldUpdateTime() : UpdateTime(), _recordUpdateTimeInverval(0), _recordUpdateTimeMin(0), _lastRecordTime(0) { }