Change: use vcpkg integration in Visual Studio

Removes the need for us to provide OpenTTD-useful package
This commit is contained in:
glx
2018-12-25 03:03:23 +01:00
committed by Patric Stout
parent cab39ff47f
commit 3be6ab555c
5 changed files with 53 additions and 38 deletions

View File

@@ -245,12 +245,19 @@
#define fseek _fseeki64
#endif /* _WIN64 || WIN64 */
/* This is needed to zlib uses the stdcall calling convention on visual studio */
#if defined(WITH_ZLIB) || defined(WITH_PNG)
#if !defined(ZLIB_WINAPI)
#define ZLIB_WINAPI
#endif
#endif
/* zlib from vcpkg use cdecl calling convention without enforcing it in the headers */
# if defined(WITH_ZLIB)
# if !defined(ZEXPORT)
# define ZEXPORT CDECL
# endif
# endif
/* freetype from vcpkg use cdecl calling convention without enforcing it in the headers */
# if defined(WITH_FREETYPE)
# if !defined(FT_EXPORT)
# define FT_EXPORT( x ) extern "C" x CDECL
# endif
# endif
#define strcasecmp stricmp
#define strncasecmp strnicmp