[9337] Use ACE PATH_MAX define magic

This commit is contained in:
VladimirMangos 2010-02-09 03:31:05 +03:00
parent 8997f0f240
commit 9c346fc0a9
5 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,6 @@
#include <ace/OS_NS_stdlib.h>
#ifdef WIN32
# define PATH_MAX _MAX_PATH
# define strcasecmp stricmp
# include <io.h>
#else
@ -403,7 +402,7 @@ int DOTCONFDocument::checkConfig(const NodeList::iterator& from)
int DOTCONFDocument::setContent(const char* _fileName)
{
int ret = 0;
char realpathBuf[PATH_MAX];
char realpathBuf[MANGOS_PATH_MAX];
if (ACE_OS::realpath(_fileName, realpathBuf) == NULL)
{