diff options
-rw-r--r-- | include/fileutils.h | 4 | ||||
-rw-r--r-- | src/fileutils.cpp | 4 | ||||
-rw-r--r-- | src/inspircd.cpp | 1 | ||||
-rw-r--r-- | src/modules.cpp | 4 |
4 files changed, 4 insertions, 9 deletions
diff --git a/include/fileutils.h b/include/fileutils.h index 9623a548d..e50cc8c34 100644 --- a/include/fileutils.h +++ b/include/fileutils.h @@ -19,10 +19,6 @@ #pragma once -#ifndef _WIN32 -# include <dirent.h> -#endif - /** Provides an easy method of reading a text file into memory. */ class CoreExport FileReader { diff --git a/src/fileutils.cpp b/src/fileutils.cpp index d5e1e5839..6c98ba300 100644 --- a/src/fileutils.cpp +++ b/src/fileutils.cpp @@ -21,6 +21,10 @@ #include <fstream> +#ifndef _WIN32 +# include <dirent.h> +#endif + FileReader::FileReader(const std::string& filename) { Load(filename); diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c5d958f87..29cd8acf2 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -30,7 +30,6 @@ #include <signal.h> #ifndef _WIN32 - #include <dirent.h> #include <unistd.h> #include <sys/resource.h> #include <dlfcn.h> diff --git a/src/modules.cpp b/src/modules.cpp index 67ebc3439..444e90645 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -28,10 +28,6 @@ #include "exitcodes.h" #include <iostream> -#ifndef _WIN32 - #include <dirent.h> -#endif - static insp::intrusive_list<dynamic_reference_base>* dynrefs = NULL; void dynamic_reference_base::reset_all() |