aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/Config/Config.h2
-rw-r--r--src/shared/Database/Database.h2
-rw-r--r--src/shared/Database/DatabaseMysql.cpp4
-rw-r--r--src/shared/Database/DatabaseMysql.h2
-rw-r--r--src/shared/Database/QueryResult.h4
-rw-r--r--src/shared/Log.h10
-rw-r--r--src/shared/ProgressBar.h2
-rw-r--r--src/shared/Util.h10
8 files changed, 18 insertions, 18 deletions
diff --git a/src/shared/Config/Config.h b/src/shared/Config/Config.h
index e6b7266e25b..ccc76073e46 100644
--- a/src/shared/Config/Config.h
+++ b/src/shared/Config/Config.h
@@ -26,7 +26,7 @@
class DOTCONFDocument;
-class TRINITY_DLL_SPEC Config
+class Config
{
public:
Config();
diff --git a/src/shared/Database/Database.h b/src/shared/Database/Database.h
index e1b44c99057..577a6ad25dd 100644
--- a/src/shared/Database/Database.h
+++ b/src/shared/Database/Database.h
@@ -34,7 +34,7 @@ typedef UNORDERED_MAP<ACE_Based::Thread* , SqlResultQueue*> QueryQueues;
#define MAX_QUERY_LEN 32*1024
-class TRINITY_DLL_SPEC Database
+class Database
{
protected:
Database() : m_threadBody(NULL), m_delayThread(NULL) {};
diff --git a/src/shared/Database/DatabaseMysql.cpp b/src/shared/Database/DatabaseMysql.cpp
index cc94ca3540d..b01e375ca91 100644
--- a/src/shared/Database/DatabaseMysql.cpp
+++ b/src/shared/Database/DatabaseMysql.cpp
@@ -200,7 +200,7 @@ bool DatabaseMysql::_Query(const char *sql, MYSQL_RES **pResult, MYSQL_FIELD **p
{
// guarded block for thread-safe mySQL request
ACE_Guard<ACE_Thread_Mutex> query_connection_guard(mMutex);
- #ifdef MANGOS_DEBUG
+ #ifdef TRINITY_DEBUG
uint32 _s = getMSTime();
#endif
if(mysql_query(mMysql, sql))
@@ -305,7 +305,7 @@ bool DatabaseMysql::DirectExecute(const char* sql)
// guarded block for thread-safe mySQL request
ACE_Guard<ACE_Thread_Mutex> query_connection_guard(mMutex);
- #ifdef MANGOS_DEBUG
+ #ifdef TRINITY_DEBUG
uint32 _s = getMSTime();
#endif
if(mysql_query(mMysql, sql))
diff --git a/src/shared/Database/DatabaseMysql.h b/src/shared/Database/DatabaseMysql.h
index 4f7ab2b88b7..43462558498 100644
--- a/src/shared/Database/DatabaseMysql.h
+++ b/src/shared/Database/DatabaseMysql.h
@@ -36,7 +36,7 @@
#include <mysql.h>
#endif
-class TRINITY_DLL_SPEC DatabaseMysql : public Database
+class DatabaseMysql : public Database
{
friend class Trinity::OperatorNew<DatabaseMysql>;
diff --git a/src/shared/Database/QueryResult.h b/src/shared/Database/QueryResult.h
index f9488f5a030..5c380c0d5d1 100644
--- a/src/shared/Database/QueryResult.h
+++ b/src/shared/Database/QueryResult.h
@@ -26,7 +26,7 @@
#include "Field.h"
-class TRINITY_DLL_SPEC QueryResult
+class QueryResult
{
public:
QueryResult(uint64 rowCount, uint32 fieldCount)
@@ -53,7 +53,7 @@ typedef ACE_Refcounted_Auto_Ptr<QueryResult, ACE_Null_Mutex> QueryResult_AutoPtr
typedef std::vector<std::string> QueryFieldNames;
-class TRINITY_DLL_SPEC QueryNamedResult
+class QueryNamedResult
{
public:
explicit QueryNamedResult(QueryResult* query, QueryFieldNames const& names) : mQuery(query), mFieldNames(names) {}
diff --git a/src/shared/Log.h b/src/shared/Log.h
index e841cd95997..a6832bff61f 100644
--- a/src/shared/Log.h
+++ b/src/shared/Log.h
@@ -179,10 +179,10 @@ class Log : public Trinity::Singleton<Log, Trinity::ClassLevelLockable<Log, ACE_
#endif
// primary for script library
-void TRINITY_DLL_SPEC outstring_log(const char * str, ...) ATTR_PRINTF(1,2);
-void TRINITY_DLL_SPEC detail_log(const char * str, ...) ATTR_PRINTF(1,2);
-void TRINITY_DLL_SPEC debug_log(const char * str, ...) ATTR_PRINTF(1,2);
-void TRINITY_DLL_SPEC error_log(const char * str, ...) ATTR_PRINTF(1,2);
-void TRINITY_DLL_SPEC error_db_log(const char * str, ...) ATTR_PRINTF(1,2);
+void outstring_log(const char * str, ...) ATTR_PRINTF(1,2);
+void detail_log(const char * str, ...) ATTR_PRINTF(1,2);
+void debug_log(const char * str, ...) ATTR_PRINTF(1,2);
+void error_log(const char * str, ...) ATTR_PRINTF(1,2);
+void error_db_log(const char * str, ...) ATTR_PRINTF(1,2);
#endif
diff --git a/src/shared/ProgressBar.h b/src/shared/ProgressBar.h
index b1525b473d6..e7565590278 100644
--- a/src/shared/ProgressBar.h
+++ b/src/shared/ProgressBar.h
@@ -22,7 +22,7 @@
#include "Platform/Define.h"
-class TRINITY_DLL_SPEC barGoLink
+class barGoLink
{
static char const * const empty;
static char const * const full;
diff --git a/src/shared/Util.h b/src/shared/Util.h
index 1b21d2311cb..4f997725d25 100644
--- a/src/shared/Util.h
+++ b/src/shared/Util.h
@@ -43,24 +43,24 @@ inline uint32 secsToTimeBitFields(time_t secs)
}
/* Return a random number in the range min..max; (max-min) must be smaller than 32768. */
-TRINITY_DLL_SPEC int32 irand(int32 min, int32 max);
+ int32 irand(int32 min, int32 max);
/* Return a random number in the range min..max (inclusive). For reliable results, the difference
* between max and min should be less than RAND32_MAX. */
-TRINITY_DLL_SPEC uint32 urand(uint32 min, uint32 max);
+ uint32 urand(uint32 min, uint32 max);
/* Return a random number in the range 0 .. RAND32_MAX. */
-TRINITY_DLL_SPEC int32 rand32();
+ int32 rand32();
/* Return a random double from 0.0 to 1.0 (exclusive). Floats support only 7 valid decimal digits.
* A double supports up to 15 valid decimal digits and is used internally (RAND32_MAX has 10 digits).
* With an FPU, there is usually no difference in performance between float and double. */
-TRINITY_DLL_SPEC double rand_norm(void);
+ double rand_norm(void);
/* Return a random double from 0.0 to 99.9999999999999. Floats support only 7 valid decimal digits.
* A double supports up to 15 valid decimal digits and is used internaly (RAND32_MAX has 10 digits).
* With an FPU, there is usually no difference in performance between float and double. */
-TRINITY_DLL_SPEC double rand_chance(void);
+ double rand_chance(void);
/* Return true if a random roll fits in the specified chance (range 0-100). */
inline bool roll_chance_f(float chance)