diff --git a/plugins/perl/perl-512.vcxproj b/plugins/perl/perl-512.vcxproj
index 8c8cd8f2..c032bb32 100644
--- a/plugins/perl/perl-512.vcxproj
+++ b/plugins/perl/perl-512.vcxproj
@@ -72,7 +72,7 @@
true
true
$(OutDir);%(AdditionalLibraryDirectories)
- $(Perl512Lib).lib;dirent-win32.lib;%(AdditionalDependencies)
+ $(Perl512Lib).lib;%(AdditionalDependencies)
perl.def
$(Perl512Lib).dll;%(DelayLoadDLLs)
@@ -103,7 +103,7 @@ move xchat.pm.h "$(IntDir)"
true
true
$(OutDir);%(AdditionalLibraryDirectories)
- $(Perl512Lib).lib;dirent-win32.lib;%(AdditionalDependencies)
+ $(Perl512Lib).lib;%(AdditionalDependencies)
perl.def
$(Perl512Lib).dll;%(DelayLoadDLLs)
diff --git a/plugins/perl/perl-514.vcxproj b/plugins/perl/perl-514.vcxproj
index e48df458..fdb5e6f1 100644
--- a/plugins/perl/perl-514.vcxproj
+++ b/plugins/perl/perl-514.vcxproj
@@ -72,7 +72,7 @@
true
true
$(OutDir);%(AdditionalLibraryDirectories)
- $(Perl514Lib).lib;dirent-win32.lib;%(AdditionalDependencies)
+ $(Perl514Lib).lib;%(AdditionalDependencies)
perl.def
$(Perl514Lib).dll;%(DelayLoadDLLs)
@@ -103,7 +103,7 @@ move xchat.pm.h "$(IntDir)"
true
true
$(OutDir);%(AdditionalLibraryDirectories)
- $(Perl514Lib).lib;dirent-win32.lib;%(AdditionalDependencies)
+ $(Perl514Lib).lib;%(AdditionalDependencies)
perl.def
$(Perl514Lib).dll;%(DelayLoadDLLs)
diff --git a/plugins/perl/perl-516.vcxproj b/plugins/perl/perl-516.vcxproj
index fb62c96a..d7ba132f 100644
--- a/plugins/perl/perl-516.vcxproj
+++ b/plugins/perl/perl-516.vcxproj
@@ -72,7 +72,7 @@
true
true
$(OutDir);%(AdditionalLibraryDirectories)
- $(Perl516Lib).lib;dirent-win32.lib;%(AdditionalDependencies)
+ $(Perl516Lib).lib;%(AdditionalDependencies)
perl.def
$(Perl516Lib).dll;%(DelayLoadDLLs)
@@ -103,7 +103,7 @@ move xchat.pm.h "$(IntDir)"
true
true
$(OutDir);%(AdditionalLibraryDirectories)
- $(Perl516Lib).lib;dirent-win32.lib;%(AdditionalDependencies)
+ $(Perl516Lib).lib;%(AdditionalDependencies)
perl.def
$(Perl516Lib).dll;%(DelayLoadDLLs)
diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c
index 87127267..ac231867 100644
--- a/plugins/perl/perl.c
+++ b/plugins/perl/perl.c
@@ -27,8 +27,6 @@
#endif
#ifdef WIN32
#include
-#define _INC_DIRENT /* disable inclusion of perl's dirent.h, we use an own version for win32 */
-#include "../../src/dirent/dirent-win32.h"
#else
#include
#endif