summaryrefslogtreecommitdiff
path: root/src/porting.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-02-02 02:01:13 -0500
committerkwolekr <kwolekr@minetest.net>2015-02-02 02:01:13 -0500
commit0118c111e8f12602b03cee8deb4c86f9b9e28cf3 (patch)
treee159f2199eb6af32e6beb7c62ce7c9001147ff27 /src/porting.cpp
parent43f102271dd3dc64b167ee305be5061976bd41d6 (diff)
downloadminetest-0118c111e8f12602b03cee8deb4c86f9b9e28cf3.tar.gz
minetest-0118c111e8f12602b03cee8deb4c86f9b9e28cf3.tar.bz2
minetest-0118c111e8f12602b03cee8deb4c86f9b9e28cf3.zip
Fix some MSVC-specific warnings and add debug path as an MSVC directory
Diffstat (limited to 'src/porting.cpp')
-rw-r--r--src/porting.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index 584d2e2a2..e99d08426 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -290,7 +290,11 @@ void pathRemoveFile(char *path, char delim)
bool detectMSVCBuildDir(char *c_path)
{
std::string path(c_path);
- const char *ends[] = {"bin\\Release", "bin\\Build", NULL};
+ const char *ends[] = {
+ "bin\\Release",
+ "bin\\Debug",
+ "bin\\Build",
+ NULL};
return (removeStringEnd(path, ends) != "");
}