diff --git a/include/unrar/UNRAR.H b/include/unrar/unrar.h
similarity index 100%
rename from include/unrar/UNRAR.H
rename to include/unrar/unrar.h
diff --git a/include/unrar/UNRARDLL.TXT b/include/unrar/unrardll.txt
similarity index 100%
rename from include/unrar/UNRARDLL.TXT
rename to include/unrar/unrardll.txt
diff --git a/include/vsfilter_config.h b/include/vsfilter_config.h
index 3a0c18456..584d07963 100644
--- a/include/vsfilter_config.h
+++ b/include/vsfilter_config.h
@@ -40,4 +40,6 @@
//show the bounding boxes of bitmaps
//#define XY_DBG_SHOW_BITMAP_BOX_IN_COLOR 0x00ff00
+#define USE_UNRAR_STATIC
+
#endif // __VSFILTER_CONFIG_6A82AF4A_67EC_4840_99D5_2DF001C64FEC_H__
diff --git a/src/subtitles/VobSubFile.cpp b/src/subtitles/VobSubFile.cpp
index 13da1444f..db4bee84a 100644
--- a/src/subtitles/VobSubFile.cpp
+++ b/src/subtitles/VobSubFile.cpp
@@ -24,9 +24,6 @@
#include "TextFile.h"
#include "VobSubFile.h"
#ifndef USE_UNRAR_STATIC
-#define USE_UNRAR_STATIC
-#endif
-#ifndef USE_UNRAR_STATIC
#include "unrar.h"
#else
#include "unrar/dll.hpp"
diff --git a/src/thirdparty/unrar/unrar.vcxproj b/src/thirdparty/unrar/unrar.vcxproj
index 57b125df0..1a08e1bc8 100644
--- a/src/thirdparty/unrar/unrar.vcxproj
+++ b/src/thirdparty/unrar/unrar.vcxproj
@@ -24,7 +24,7 @@
Win32Proj
-
+
StaticLibrary
MultiByte
@@ -44,6 +44,12 @@
false
+
+
+ OnlyExplicitInline
+ Size
+
+