Core: Fix non pch build (gcc)

This commit is contained in:
Vincent-Michael
2014-07-20 02:54:12 +02:00
parent a59ec8c8e9
commit 0531f52008
10 changed files with 26 additions and 9 deletions

View File

@@ -21,6 +21,7 @@
#include "SharedDefines.h"
#include <sstream>
#include <list>
#include <cstring>
struct ItemLocale;
struct ItemTemplate;

View File

@@ -18,6 +18,7 @@
#include "PacketLog.h"
#include "Config.h"
#include "WorldPacket.h"
#include "Timer.h"
#pragma pack(push, 1)

View File

@@ -252,13 +252,14 @@ class npc_minigob_manabonk : public CreatureScript
events.ScheduleEvent(EVENT_BLINK, 3*IN_MILLISECONDS);
break;
case EVENT_BLINK:
{
DoCast(me, SPELL_IMPROVED_BLINK);
Position pos;
me->GetRandomNearPosition(pos, (urand(15, 40)));
Position pos = me->GetRandomNearPosition(frand(15, 40));
me->GetMotionMaster()->MovePoint(0, pos.m_positionX, pos.m_positionY, pos.m_positionZ);
events.ScheduleEvent(EVENT_DESPAWN, 3*IN_MILLISECONDS);
events.ScheduleEvent(EVENT_DESPAWN, 3 * IN_MILLISECONDS);
events.ScheduleEvent(EVENT_DESPAWN_VISUAL, 2.5*IN_MILLISECONDS);
break;
}
case EVENT_DESPAWN_VISUAL:
DoCast(me, SPELL_TELEPORT_VISUAL);
break;

View File

@@ -20,6 +20,8 @@
#include "Cryptography/HMACSHA1.h"
#include "Cryptography/BigNumber.h"
#include <cstring>
AuthCrypt::AuthCrypt() :
_clientDecrypt(SHA_DIGEST_LENGTH), _serverEncrypt(SHA_DIGEST_LENGTH),
_initialized(false)

View File

@@ -19,6 +19,7 @@
#include "Cryptography/BigNumber.h"
#include <openssl/bn.h>
#include <openssl/crypto.h>
#include <cstring>
#include <algorithm>
#include <memory>

View File

@@ -18,6 +18,7 @@
#include "SHA1.h"
#include "BigNumber.h"
#include <cstring>
#include <stdarg.h>
SHA1Hash::SHA1Hash()

View File

@@ -18,6 +18,8 @@
#include "SHA1.h"
#include <cstring>
#ifndef _WARDEN_KEY_GENERATION_H
#define _WARDEN_KEY_GENERATION_H

View File

@@ -21,15 +21,16 @@
#include "CompilerDefs.h"
#include <cstddef>
#include <cinttypes>
#include <climits>
#if COMPILER == COMPILER_GNU
# if !defined(__STDC_FORMAT_MACROS)
# define __STDC_FORMAT_MACROS
# endif
#endif
#include <cstddef>
#include <cinttypes>
#define TRINITY_LITTLEENDIAN 0
#define TRINITY_BIGENDIAN 1

View File

@@ -16,14 +16,14 @@
*/
#include <sstream>
#if PLATFORM == PLATFORM_WINDOWS
#include <windows.h>
#endif
#include "AppenderConsole.h"
#include "Config.h"
#include "Util.h"
#if PLATFORM == PLATFORM_WINDOWS
#include <Windows.h>
#endif
AppenderConsole::AppenderConsole(uint8 id, std::string const& name, LogLevel level, AppenderFlags flags):
Appender(id, name, APPENDER_CONSOLE, level, flags), _colored(false)

View File

@@ -21,8 +21,15 @@
#include "utf8.h"
#include "SFMT.h"
#include "Errors.h" // for ASSERT
#include <stdarg.h>
#include <boost/thread/tss.hpp>
#if PLATFORM == PLATFORM_UNIX
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
static boost::thread_specific_ptr<SFMTRand> sfmtRand;
static SFMTRand* GetRng()