diff --git a/make/directive.pm b/make/directive.pm index 44b424487..cc61203b4 100644 --- a/make/directive.pm +++ b/make/directive.pm @@ -33,7 +33,6 @@ use make::console; use constant DIRECTIVE_ERROR_PIPE => $ENV{INSPIRCD_VERBOSE} ? '' : '2>/dev/null'; use constant PKG_CONFIG => $ENV{PKG_CONFIG} || 'pkg-config'; -use constant VENDOR_DIRECTORY => catdir(dirname(dirname(__FILE__)), 'vendor'); our @EXPORT = qw( get_directives @@ -317,26 +316,6 @@ sub __function_require_version { return ""; } -sub __function_vendor_directory { - my ($file, $name) = @_; - - # Try to look the directory up in the environment... - my $key = __environment 'INSPIRCD_VENDOR_', $name; - if (defined $ENV{$key}) { - say console_format "Found the <|GREEN $name|> vendor directory for <|GREEN ${\module_shrink $file}|> using the environment: <|BOLD $ENV{$key}|>"; - return $ENV{$key}; - } - - my $directory = catdir(VENDOR_DIRECTORY, $name); - if (-d $directory) { - say console_format "Using the default <|GREEN $name|> vendor directory for <|GREEN ${\module_shrink $file}|>: <|BOLD $directory|>"; - return $directory; - } - - # We can't find it via the environment or via the filesystem so give up. - __error $file, "unable to find the <|GREEN $name|> vendor directory for <|GREEN ${\module_shrink $file}|>!"; -} - sub __function_warning { my ($file, @messages) = @_; print_warning @messages; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 8257ea6a2..10440e8fc 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -44,7 +44,7 @@ #include #ifdef _WIN32 -# include +# include #else # include # include diff --git a/src/modules/m_bcrypt.cpp b/src/modules/m_bcrypt.cpp index c6615a728..17bd9e072 100644 --- a/src/modules/m_bcrypt.cpp +++ b/src/modules/m_bcrypt.cpp @@ -17,13 +17,11 @@ * along with this program. If not, see . */ -/// $CompilerFlags: -isystem vendor_directory("bcrypt") - #include "inspircd.h" #include "modules/hash.h" -#include +#include class BCryptProvider final : public HashProvider diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 6035c62d1..8bce18626 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -26,8 +26,6 @@ * along with this program. If not, see . */ -/// $CompilerFlags: -isystem vendor_directory("http_parser") - #include "inspircd.h" #include "iohook.h" @@ -42,7 +40,7 @@ # pragma GCC diagnostic ignored "-Wshadow" #endif -#include +#include #ifdef __GNUC__ # pragma GCC diagnostic pop diff --git a/src/modules/m_sha2.cpp b/src/modules/m_sha2.cpp index c68c579b9..7d85d5a8e 100644 --- a/src/modules/m_sha2.cpp +++ b/src/modules/m_sha2.cpp @@ -23,8 +23,6 @@ * along with this program. If not, see . */ -/// $CompilerFlags: -isystem vendor_directory("sha2") - // Fix a collision between the Haiku uint64 typedef and the // one from the sha2 library. @@ -32,7 +30,7 @@ # define uint64 sha2_uint64 #endif -#include +#include #ifdef __HAIKU__ # undef uint64 diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp index 071c5c2f2..3e3794e82 100644 --- a/src/modules/m_websocket.cpp +++ b/src/modules/m_websocket.cpp @@ -18,15 +18,13 @@ * along with this program. If not, see . */ -/// $CompilerFlags: -isystem vendor_directory("utfcpp") - #include "inspircd.h" #include "iohook.h" #include "modules/hash.h" #define UTF_CPP_CPLUSPLUS 199711L -#include +#include static constexpr char MagicGUID[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; static constexpr char newline[] = "\r\n"; diff --git a/win/CMakeLists.txt b/win/CMakeLists.txt index e442d40d4..e7ef222f3 100644 --- a/win/CMakeLists.txt +++ b/win/CMakeLists.txt @@ -53,13 +53,6 @@ file(GLOB INSPIRCD_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ) list(SORT INSPIRCD_SOURCES) -file(GLOB INSPIRCD_VENDORS "${INSPIRCD_BASE}/vendor/**") -foreach(INSPIRCD_VENDOR ${INSPIRCD_VENDORS}) - if(IS_DIRECTORY ${INSPIRCD_VENDOR}) - include_directories(${INSPIRCD_VENDOR}) - endif() -endforeach() - include_directories("${INSPIRCD_BASE}/win" "${INSPIRCD_BASE}/include" "${INSPIRCD_BASE}/vendor") include_directories(${EXTRA_INCLUDES}) diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index 0312caab7..d61f6d136 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -27,7 +27,7 @@ #include "inspircd_win32wrapper.h" #include "inspircd.h" -#include +#include CWin32Exception::CWin32Exception() : exception() {