[8025] Avoid git_id dependence from MaNGOS headers.

This commit is contained in:
VladimirMangos 2009-06-16 12:36:38 +04:00
parent bdc7df00d6
commit 1187c8698c
2 changed files with 3 additions and 4 deletions

View file

@ -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] == '\\')

View file

@ -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__