Add VS 2017 compatibility for building in Appveyor

* add travis-ci badge

* vs2017 compatibility

* add appveyor

* fix appveyor

* revert sln

* fix win64 gdirposx

* fix tab

* version bump

* cosmetic
This commit is contained in:
Alexander Skovpen
2018-07-08 11:16:17 +03:00
committed by dukelsky
parent 8537001b1f
commit 5937dcacdb
11 changed files with 2159 additions and 5 deletions

2
goldlib/gall/gdirposx.cpp Normal file → Executable file
View File

@@ -126,7 +126,7 @@ void gposixdir::cd(const char *name, bool relative)
else
ndirname += "/*";
struct _finddata_t de;
long d = _findfirst(ndirname.c_str(), &de);
intptr_t d = _findfirst(ndirname.c_str(), &de);
if(d == -1) {
if(is_dir(dirname))
ok = true;

2
goldlib/gall/gstrutil.cpp Normal file → Executable file
View File

@@ -31,7 +31,7 @@
// -------------------------------------------------------------------
// snprintf() and vsnprintf()
#if defined(_MSC_VER)
#if defined(_MSC_VER) && _MSC_VER<1900
/* It is need a workaround for implementation "speciality" in snprintf() and vsnprintf() from Microsoft. */
int snprintf( char *buffer, size_t sizeOfBuffer, const char *format, ... )
{

View File

@@ -26,7 +26,7 @@
#endif
// Only MS VC++ 5 to 7
#if (_MSC_VER < 1100) || (_MSC_VER > 1400)
#if (_MSC_VER < 1100) //|| (_MSC_VER > 1400)
#error Only MS VC++ 5/6/7/7.1/8 supported. Check if the '_CrtMemBlockHeader' has not changed with this compiler!
#endif