mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +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 <set>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include "../../src/framework/Platform/CompilerDefs.h"
|
|
||||||
|
|
||||||
#if PLATFORM == PLATFORM_WINDOWS
|
#ifdef WIN32
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#define popen _popen
|
#define popen _popen
|
||||||
#define pclose _pclose
|
#define pclose _pclose
|
||||||
|
|
@ -114,7 +113,7 @@ bool find_path()
|
||||||
char *ptr;
|
char *ptr;
|
||||||
char cur_path[MAX_PATH];
|
char cur_path[MAX_PATH];
|
||||||
getcwd(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);
|
strncpy(base_path, cur_path, len+1);
|
||||||
|
|
||||||
if(cur_path[len-1] == '/' || cur_path[len-1] == '\\')
|
if(cur_path[len-1] == '/' || cur_path[len-1] == '\\')
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8024"
|
#define REVISION_NR "8025"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue