From 879273c863faa273567340eaa152e177801322cf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 28 Apr 2013 20:44:01 +0200 Subject: Add fixes for windows compilation. --- plugingui/directory.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugingui/directory.cc b/plugingui/directory.cc index d25a367..44f24a4 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -27,6 +27,12 @@ #include "directory.h" #include +#include + +#ifdef WIN32 +#include +#include +#endif #include @@ -133,11 +139,8 @@ Directory::DriveList Directory::drives() { char name[] = "X:"; name[0] = i + 'A'; - char num[32]; - sprintf(num, "%d", i); - drive.name = name; - drive.number = num; + drive.number = i; drives.push_back(drive); } } -- cgit v1.2.3