summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-28 20:44:01 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-28 20:44:01 +0200
commit879273c863faa273567340eaa152e177801322cf (patch)
treeabe99d0ee97e86aef5c2dd072b9c6596685a756e
parent0eece5d7d71181ddf99ab1bea785a6aa4ceee81c (diff)
Add fixes for windows compilation.
-rw-r--r--plugingui/directory.cc11
1 files 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 <dirent.h>
+#include <stdio.h>
+
+#ifdef WIN32
+#include <direct.h>
+#include <windows.h>
+#endif
#include <hugin.hpp>
@@ -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);
}
}