diff --git a/libs/libopenmpt.props b/libs/libopenmpt.props
new file mode 100644
index 000000000..8825907b6
--- /dev/null
+++ b/libs/libopenmpt.props
@@ -0,0 +1,16 @@
+
+
+
+
+
+ $(SolutionDir)libs\libopenmpt\inc;$(IncludePath)
+ $(SolutionDir)libs\libopenmpt\lib\x86;$(LibraryPath)
+ $(SolutionDir)libs\libopenmpt\lib\x86_64;$(LibraryPath)
+
+
+
+ libopenmpt.lib;%(AdditionalDependencies)
+
+
+
+
\ No newline at end of file
diff --git a/src/doomtype.h b/src/doomtype.h
index b44e32e46..1afa77c9d 100644
--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -29,6 +29,12 @@
/* 7.18.1.1 Exact-width integer types */
#ifdef _MSC_VER
+// libopenmpt.h will include stdint.h later;
+// include it now so that INT8_MAX etc. don't get redefined
+#ifdef HAVE_OPENMPT
+#include
+#endif
+
#define UINT8 unsigned __int8
#define SINT8 signed __int8
@@ -206,6 +212,7 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
#endif // __BYTEBOOL__
/* 7.18.2.1 Limits of exact-width integer types */
+
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
diff --git a/src/sdl/Srb2SDL-vc10.vcxproj b/src/sdl/Srb2SDL-vc10.vcxproj
index 04af6a8e1..cb08f727e 100644
--- a/src/sdl/Srb2SDL-vc10.vcxproj
+++ b/src/sdl/Srb2SDL-vc10.vcxproj
@@ -93,6 +93,7 @@
+
@@ -291,6 +292,7 @@
+
@@ -465,6 +467,7 @@
+
diff --git a/src/sdl/Srb2SDL-vc10.vcxproj.filters b/src/sdl/Srb2SDL-vc10.vcxproj.filters
index ac0b03177..d9d31e3bb 100644
--- a/src/sdl/Srb2SDL-vc10.vcxproj.filters
+++ b/src/sdl/Srb2SDL-vc10.vcxproj.filters
@@ -447,6 +447,9 @@
SDLApp
+
+ SDLApp
+
@@ -885,6 +888,9 @@
SDLApp
+
+ SDLApp
+
diff --git a/src/sdl/Srb2SDL.props b/src/sdl/Srb2SDL.props
index 260f81eed..b376c64b7 100644
--- a/src/sdl/Srb2SDL.props
+++ b/src/sdl/Srb2SDL.props
@@ -5,7 +5,7 @@
- USE_WGL_SWAP;DIRECTFULLSCREEN;HAVE_SDL;HWRENDER;HW3SOUND;HAVE_FILTER;HAVE_MIXER;SDLMAIN;%(PreprocessorDefinitions)
+ USE_WGL_SWAP;DIRECTFULLSCREEN;HAVE_SDL;HWRENDER;HW3SOUND;HAVE_FILTER;HAVE_MIXER;HAVE_OPENMPT;SDLMAIN;%(PreprocessorDefinitions)