From bf5eaa39ea135aa1f1f2aa574179096aa79f623a Mon Sep 17 00:00:00 2001 From: zvon Date: Wed, 1 Apr 2020 13:46:28 +0200 Subject: [PATCH] Reorder includes --- main.cpp | 6 ++---- progress.cpp | 2 +- tv_rename.cpp | 7 +++++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 6518637..ab3bdbf 100644 --- a/main.cpp +++ b/main.cpp @@ -1,15 +1,13 @@ -#include -#include #include #include #include #ifdef _WIN32 -#include "resources.h" +#include +#include "resources_windows.h" #include #include -#include using char_t = wchar_t; using string = std::wstring; diff --git a/progress.cpp b/progress.cpp index e84e9f2..d23034a 100644 --- a/progress.cpp +++ b/progress.cpp @@ -8,8 +8,8 @@ #ifdef _WIN32 -#include #include +#include #include #define cout std::wcout diff --git a/tv_rename.cpp b/tv_rename.cpp index 5ea12e9..816e471 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -4,7 +4,6 @@ #include "filesystem.hpp" #include "functions.hpp" -#include "resources_linux.h" #include "tv_rename.hpp" #include "rapidjson/document.h" @@ -18,11 +17,13 @@ #ifdef _WIN32 +#include +#include "resources_windows.h" + #include #include #include #include -#include constexpr const char_t *_tv_rename_dir_divider = L"\\"; @@ -34,6 +35,8 @@ constexpr const char_t *_tv_rename_dir_divider = L"\\"; #else +#include "resources_linux.h" + constexpr const char_t *_tv_rename_dir_divider = "/"; #define cout std::cout