From 1187c8698c3b875df2524f1c852c6aaf8df6de2b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 16 Jun 2009 12:36:38 +0400 Subject: [PATCH] [8025] Avoid git_id dependence from MaNGOS headers. --- contrib/git_id/git_id.cpp | 5 ++--- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/git_id/git_id.cpp b/contrib/git_id/git_id.cpp index 05373165e..319abbd64 100644 --- a/contrib/git_id/git_id.cpp +++ b/contrib/git_id/git_id.cpp @@ -25,9 +25,8 @@ #include #include #include -#include "../../src/framework/Platform/CompilerDefs.h" -#if PLATFORM == PLATFORM_WINDOWS +#ifdef WIN32 #include #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] == '\\') diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2b5077d50..52aa9ff37 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8024" + #define REVISION_NR "8025" #endif // __REVISION_NR_H__