Changeset 6 for trunk/src/shared

Show
Ignore:
Timestamp:
11/19/08 13:22:12 (17 years ago)
Author:
yumileroy
Message:

[svn] * Added ACE for Linux and Windows (Thanks Derex for Linux part and partial Windows part)
* Updated to 6721 and 676
* Fixed TrinityScript? logo
* Version updated to 0.2.6721.676

Original author: Neo2003
Date: 2008-10-04 06:17:19-05:00

Location:
trunk/src/shared
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/shared/Common.h

    r2 r6  
    2020#define MANGOSSERVER_COMMON_H 
    2121 
     22// config.h needs to be included 1st 
     23// TODO this thingy looks like hack ,but its not, need to 
     24// make separate header however, because It makes mess here. 
     25#ifdef HAVE_CONFIG_H 
     26// Remove Some things that we will define  
     27// This is in case including another config.h  
     28// before trinity config.h  
     29#ifdef PACKAGE 
     30#undef PACKAGE 
     31#endif //PACKAGE 
     32#ifdef PACKAGE_BUGREPORT 
     33#undef PACKAGE_BUGREPORT 
     34#endif //PACKAGE_BUGREPORT 
     35#ifdef PACKAGE_NAME 
     36#undef PACKAGE_NAME 
     37#endif //PACKAGE_NAME 
     38#ifdef PACKAGE_STRING 
     39#undef PACKAGE_STRING 
     40#endif //PACKAGE_STRING 
     41#ifdef PACKAGE_TARNAME 
     42#undef PACKAGE_TARNAME 
     43#endif //PACKAGE_TARNAME 
     44#ifdef PACKAGE_VERSION 
     45#undef PACKAGE_VERSION 
     46#endif //PACKAGE_VERSION 
     47#ifdef VERSION 
     48#undef VERSION 
     49#endif //VERSION 
     50# include "config.h" 
     51#undef PACKAGE 
     52#undef PACKAGE_BUGREPORT 
     53#undef PACKAGE_NAME 
     54#undef PACKAGE_STRING 
     55#undef PACKAGE_TARNAME 
     56#undef PACKAGE_VERSION 
     57#undef VERSION 
     58#endif //HAVE_CONFIG_H 
     59 
    2260#include "Platform/Define.h" 
    2361 
     
    4381#endif                                                      // __SHOW_STUPID_WARNINGS__ 
    4482#endif                                                      // __GNUC__ 
    45  
    46 #ifdef HAVE_CONFIG_H 
    47 # include <config.h> 
    48 #endif 
    4983 
    5084#include "Utilities/HashMap.h" 
     
    77111 
    78112#if PLATFORM == PLATFORM_WINDOWS 
    79 #  define FD_SETSIZE 1024 
    80 #  include <winsock2.h> 
     113#  define FD_SETSIZE 4096 
     114#  include <ace/config-all.h> 
    81115// XP winver - needed to compile with standard leak check in MemoryLeaks.h 
    82116// uncomment later if needed 
  • trunk/src/shared/Database/DBCStructure.h

    r2 r6  
    596596    uint32    TargetCreatureType;                           // 15 
    597597    uint32    RequiresSpellFocus;                           // 16 
    598     //uint32    FacingCasterFlags;                          // 17 not used 
     598    uint32    FacingCasterFlags;                            // 17 
    599599    uint32    CasterAuraState;                              // 18 
    600600    uint32    TargetAuraState;                              // 19 
  • trunk/src/shared/Database/DBCfmt.cpp

    r2 r6  
    6161const char SpellCastTimefmt[]="nixx"; 
    6262const char SpellDurationfmt[]="niii"; 
    63 const char SpellEntryfmt[]="nixiiiiiiiixiiiiixiiiiiiiiiiiiiiiiiiiiiiifxiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiffffffiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiifffixiixssssssssssssssssxssssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiiiiiiiiiixfffxxxiiii"; 
     63const char SpellEntryfmt[]="nixiiiiiiiixiiiiiiiiiiiiiiiiiiiiiiiiiiiiifxiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiffffffiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiifffixiixssssssssssssssssxssssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiiiiiiiiiixfffxxxiiii"; 
    6464const char SpellFocusObjectfmt[]="nxxxxxxxxxxxxxxxxx"; 
    6565const char SpellItemEnchantmentfmt[]="niiiiiixxxiiissssssssssssssssxiiii"; 
  • trunk/src/shared/Database/DatabaseEnv.h

    r2 r6  
    3535#define _LIKE_          "ILIKE" 
    3636#define _TABLE_SIM_     "\"" 
     37#define _CONCAT3_(A,B,C) "( " A " || " B " || " C " )" 
    3738#else 
    3839#include "Database/QueryResultMysql.h" 
     
    4445#define _LIKE_          "LIKE" 
    4546#define _TABLE_SIM_     "`" 
     47#define _CONCAT3_(A,B,C) "CONCAT( " A " , " B " , " C " )" 
    4648#endif 
    4749 
  • trunk/src/shared/Makefile.am

    r2 r6  
    3131$(POSTGRE_INCLUDES) \ 
    3232-I$(top_srcdir)/dep/include \ 
     33-I$(top_srcdir)/dep/ACE_wrappers \ 
     34-I$(top_builddir)/dep/ACE_wrappers \ 
    3335-I$(top_srcdir)/src/framework 
    3436 
  • trunk/src/shared/Timer.h

    r2 r6  
    2323 
    2424#if PLATFORM == PLATFORM_WINDOWS 
    25 #   include <windows.h> 
     25#   include <ace/config-all.h> 
    2626#   include <mmsystem.h> 
    2727#   include <time.h>