mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[8025] Avoid git_id dependence from MaNGOS headers.
This commit is contained in:
parent
bdc7df00d6
commit
1187c8698c
2 changed files with 3 additions and 4 deletions
|
|
@ -25,9 +25,8 @@
|
|||
#include <set>
|
||||
#include <list>
|
||||
#include <sstream>
|
||||
#include "../../src/framework/Platform/CompilerDefs.h"
|
||||
|
||||
#if PLATFORM == PLATFORM_WINDOWS
|
||||
#ifdef WIN32
|
||||
#include <direct.h>
|
||||
#define popen _popen
|
||||
#define pclose _pclose
|
||||
|
|
@ -114,7 +113,7 @@ bool find_path()
|
|||
char *ptr;
|
||||
char cur_path[MAX_PATH];
|
||||
getcwd(cur_path, MAX_PATH);
|
||||
int len = strlen(cur_path);
|
||||
size_t len = strlen(cur_path);
|
||||
strncpy(base_path, cur_path, len+1);
|
||||
|
||||
if(cur_path[len-1] == '/' || cur_path[len-1] == '\\')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue