From 77b5cadac636ddee4ed39bcaf1344c270fcaa447 Mon Sep 17 00:00:00 2001 From: pauldubois Date: Mon, 10 Mar 2008 03:30:55 +0000 Subject: Batch of tiny changes for MSVC compiles. Most of these fall into the category: - don't use struct to refer to a class, and vice versa - msvc doesn't like unistd.h or dirent.h Doesn't fix all the struct/class problems; I think I'll silence those for now and move on because it's not all that important. Tested on OS X. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3571 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/chardump.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/chardump.cc') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 986cc5a2d8..86c0675d4a 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -24,7 +24,7 @@ #include #include #include -#if !defined(__IBMCPP__) +#if !defined(__IBMCPP__) && !defined(_MSC_VER) #include #endif #include @@ -353,7 +353,7 @@ static void sdump_misc(dump_params &par) sdump_visits(par); } -#define TO_PERCENT(x, y) (100.0 * ((float) (x)) / ((float) (y))) +#define TO_PERCENT(x, y) (100.0f * ((float) (x)) / ((float) (y))) static std::string sdump_turns_place_info(PlaceInfo place_info, std::string name = "") -- cgit v1.2.3-54-g00ecf