diff --git a/plugins/builtin/include/content/providers/disk_provider.hpp b/plugins/builtin/include/content/providers/disk_provider.hpp index d24c3c7a2..ea9127844 100644 --- a/plugins/builtin/include/content/providers/disk_provider.hpp +++ b/plugins/builtin/include/content/providers/disk_provider.hpp @@ -7,6 +7,7 @@ #include #if defined(OS_WINDOWS) + #define WIN32_LEAN_AND_MEAN #include #endif diff --git a/plugins/builtin/include/content/providers/file_provider.hpp b/plugins/builtin/include/content/providers/file_provider.hpp index 39f9ace8f..fb4c3c844 100644 --- a/plugins/builtin/include/content/providers/file_provider.hpp +++ b/plugins/builtin/include/content/providers/file_provider.hpp @@ -7,15 +7,12 @@ #include #if defined(OS_WINDOWS) - + #define WIN32_LEAN_AND_MEAN #include - #else - #include #include #include - #endif namespace hex::plugin::builtin::prv { diff --git a/plugins/builtin/source/content/providers/disk_provider.cpp b/plugins/builtin/source/content/providers/disk_provider.cpp index 6002d5469..9c6da8302 100644 --- a/plugins/builtin/source/content/providers/disk_provider.cpp +++ b/plugins/builtin/source/content/providers/disk_provider.cpp @@ -11,22 +11,17 @@ #include +#if defined(OS_WINDOWS) + #include +#elif defined(OS_LINUX) || defined(OS_MACOS) + #include + #include + #include + #include +#endif + #if defined(OS_LINUX) - - #include - #include - #include - #include - #define lseek lseek64 - -#elif defined(OS_MACOS) - - #include - #include - #include - #include - #endif namespace hex::plugin::builtin::prv {