Skip to content

Commit 7bd51c9

Browse files
committed
Updated for Visual Studio 2015
1 parent 679f709 commit 7bd51c9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

osal/preproc.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434

3535
/* string functions */
3636
#define osal_insensitive_strcmp(x, y) _stricmp(x, y)
37-
#define snprintf _snprintf
37+
#if _MSC_VER < 1900
38+
#define snprintf _snprintf
39+
#endif
3840
#define strdup _strdup
3941

4042
/* for isnan() */

prj/msvc/lazyusf2.vcxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@
224224
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
225225
<ConfigurationType>StaticLibrary</ConfigurationType>
226226
<UseDebugLibraries>true</UseDebugLibraries>
227-
<PlatformToolset>v120_xp</PlatformToolset>
227+
<PlatformToolset>v140_xp</PlatformToolset>
228228
<CharacterSet>Unicode</CharacterSet>
229229
</PropertyGroup>
230230
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
231231
<ConfigurationType>StaticLibrary</ConfigurationType>
232232
<UseDebugLibraries>false</UseDebugLibraries>
233-
<PlatformToolset>v120_xp</PlatformToolset>
233+
<PlatformToolset>v140_xp</PlatformToolset>
234234
<CharacterSet>Unicode</CharacterSet>
235235
</PropertyGroup>
236236
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />

0 commit comments

Comments
 (0)