Fix compile issues on windows.

develop
expwnent 2014-06-19 22:32:02 -04:00
parent 3357718d03
commit 12d18ca64d
2 changed files with 2 additions and 2 deletions

@ -88,7 +88,7 @@ bool DFHack::Filesystem::rmdir (std::string path)
} }
#ifdef _WIN32 #ifdef _WIN32
_filetype *mode2type (unsigned short mode) { _filetype mode2type (unsigned short mode) {
#else #else
_filetype mode2type (mode_t mode) { _filetype mode2type (mode_t mode) {
#endif #endif

@ -407,7 +407,7 @@ struct confirm_embark_hook : df::viewscreen_setupdwarfgamest
x = 2, y = 4; x = 2, y = 4;
int32_t points = this->points_remaining; int32_t points = this->points_remaining;
OutputString(COLOR_WHITE, x, y, "Points left: "); OutputString(COLOR_WHITE, x, y, "Points left: ");
OutputString((points ? COLOR_YELLOW : COLOR_LIGHTGREEN), x, y, std::to_string(points)); OutputString((points ? COLOR_YELLOW : COLOR_LIGHTGREEN), x, y, std::to_string((unsigned long long/*won't compile on windows otherwise*/)points));
x = dim.x - 10, y = dim.y - 1; x = dim.x - 10, y = dim.y - 1;
OutputString(COLOR_WHITE, x, y, "DFHack"); OutputString(COLOR_WHITE, x, y, "DFHack");
} }