summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-17 15:00:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-17 15:30:16 +0100
commit4363187d4e86c63d9465cbe7296d11fdc7815e32 (patch)
tree33005bd8183d74825b44bc4d47680faf7df009f0 /plugingui/filebrowser.cc
parent70e08d1325b2cdd0e9c16a193cc6ed10d2d21617 (diff)
Replace obsolete WIN32 ifdefs with platform define.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index 329c599..6ac9d3e 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -39,6 +39,7 @@
#include <sys/stat.h>
#include <unistd.h>
+#include <platform.h>
#include <hugin.hpp>
#ifdef __MINGW32__
@@ -57,7 +58,7 @@ FileBrowser::FileBrowser(Widget *parent)
, btn_esc(this)
, back(":bg.png")
{
-#ifdef WIN32
+#if DG_PLATFORM == DG_PLATFORM_WINDOWS
above_root = false;
#endif
@@ -185,7 +186,7 @@ void FileBrowser::changeDir()
INFO(filebrowser, "Changing path to '%s'\n",
(dir.path() + dir.seperator() + value).c_str());
-#ifdef WIN32
+#if DG_PLATFORM == DG_PLATFORM_WINDOWS
if(above_root && !value.empty())
{
dir.setPath(value + dir.seperator());
@@ -211,7 +212,7 @@ void FileBrowser::changeDir()
std::vector<ListBoxBasic::Item> items;
-#ifdef WIN32
+#if DG_PLATFORM == DG_PLATFORM_WINDOWS
if(Directory::isRoot(dir.path()) && (value == ".."))
{
DEBUG(filebrowser, "Showing partitions...\n");