Skip to content

Commit 4253625

Browse files
Xphalnossonatique
authored andcommitted
windows: Fix Compilation with Microsoft Visual Studio 2026
Closes libusb#1702
1 parent a409dbb commit 4253625

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libusb/version_nano.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define LIBUSB_NANO 11986
1+
#define LIBUSB_NANO 11987

msvc/Configuration.Base.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<PlatformToolset Condition="$(VisualStudioVersion)=='15.0'">v141</PlatformToolset>
88
<PlatformToolset Condition="$(VisualStudioVersion)=='16.0'">v142</PlatformToolset>
99
<PlatformToolset Condition="$(VisualStudioVersion)=='17.0'">v143</PlatformToolset>
10+
<PlatformToolset Condition="$(VisualStudioVersion)=='18.0'">v145</PlatformToolset>
1011
<!--We may need the equivalent of PlatformToolsetVersion before it's ready, so create it ourself-->
1112
<LibusbPlatformToolsetVersion>$(PlatformToolset.Substring(1))</LibusbPlatformToolsetVersion>
1213
<CharacterSet>Unicode</CharacterSet>
@@ -44,4 +45,4 @@
4445
<PropertyGroup Label="Globals" Condition="'$(LibusbPlatformToolsetVersion)'&gt;='142'">
4546
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
4647
</PropertyGroup>
47-
</Project>
48+
</Project>

0 commit comments

Comments
 (0)