mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[9337] Use ACE PATH_MAX define magic
This commit is contained in:
parent
8997f0f240
commit
9c346fc0a9
5 changed files with 7 additions and 6 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue