From 1849e67139c57c97f4ba723c9f8fb2740b5c115a Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 14 Apr 2022 22:20:46 +0100 Subject: [PATCH 1/2] Use stdint.h with MSVC 2010 --- include/ogg/os_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ogg/os_types.h b/include/ogg/os_types.h index e655a1d6..975111b5 100644 --- a/include/ogg/os_types.h +++ b/include/ogg/os_types.h @@ -49,7 +49,7 @@ typedef short ogg_int16_t; typedef unsigned short ogg_uint16_t; # else -# if defined(_MSC_VER) && (_MSC_VER >= 1800) /* MSVC 2013 and newer */ +# if defined(_MSC_VER) && (_MSC_VER >= 1600) /* MSVC 2010 and newer */ # include typedef int16_t ogg_int16_t; typedef uint16_t ogg_uint16_t; From 28db0c972885d8ea6b736d55cae54053831ff307 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 14 Apr 2022 22:21:51 +0100 Subject: [PATCH 2/2] Use the default platform toolset in the Visual Studio project --- win32/VS2015/libogg.sln | 2 +- win32/VS2015/libogg.vcxproj | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/win32/VS2015/libogg.sln b/win32/VS2015/libogg.sln index e19789a0..6e2ecc01 100644 --- a/win32/VS2015/libogg.sln +++ b/win32/VS2015/libogg.sln @@ -1,5 +1,5 @@  -Microsoft Visual Studio Solution File, Format Version 12.00 +Microsoft Visual Studio Solution File, Format Version 11.00 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libogg", "libogg.vcxproj", "{AFF27A26-C088-444B-BC2A-0BA94A02AFA7}" EndProject diff --git a/win32/VS2015/libogg.vcxproj b/win32/VS2015/libogg.vcxproj index 9dec07a5..028cebe9 100644 --- a/win32/VS2015/libogg.vcxproj +++ b/win32/VS2015/libogg.vcxproj @@ -37,13 +37,14 @@ {AFF27A26-C088-444B-BC2A-0BA94A02AFA7} libogg + 10.0 8.1 StaticLibrary true - v140 + $(DefaultPlatformToolset) MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ $(PlatformName)\$(Configuration)\ @@ -51,7 +52,7 @@ DynamicLibrary true - v140 + $(DefaultPlatformToolset) MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ $(PlatformName)\$(Configuration)\ @@ -59,7 +60,7 @@ StaticLibrary false - v140 + $(DefaultPlatformToolset) true MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ @@ -68,7 +69,7 @@ DynamicLibrary false - v140 + $(DefaultPlatformToolset) true MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ @@ -77,7 +78,7 @@ StaticLibrary true - v140 + $(DefaultPlatformToolset) MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ $(PlatformName)\$(Configuration)\ @@ -85,7 +86,7 @@ DynamicLibrary true - v140 + $(DefaultPlatformToolset) MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ $(PlatformName)\$(Configuration)\ @@ -93,7 +94,7 @@ StaticLibrary false - v140 + $(DefaultPlatformToolset) true MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\ @@ -102,7 +103,7 @@ DynamicLibrary false - v140 + $(DefaultPlatformToolset) true MultiByte $(SolutionDir)$(PlatformName)\$(Configuration)\