From 4363187d4e86c63d9465cbe7296d11fdc7815e32 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 17 Feb 2017 15:00:52 +0100 Subject: Replace obsolete WIN32 ifdefs with platform define. --- plugingui/filebrowser.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugingui/filebrowser.cc') 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 #include +#include #include #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 items; -#ifdef WIN32 +#if DG_PLATFORM == DG_PLATFORM_WINDOWS if(Directory::isRoot(dir.path()) && (value == "..")) { DEBUG(filebrowser, "Showing partitions...\n"); -- cgit v1.2.3