There is a problem on BYTE_ORDER definition and also on _getcwd local declaration.
I upload a brutally modified version. You can refine the modifications.
use -DARCH_IS_BIG_ENDIAN=0 -D_lseeki64=_lseek64
and compile with __cdecl if 32-bit.
Only change in civetweb.c
...
/* Visual Studio 6 does not know __func__ or __FUNCTION__
The rest of MS compilers use __FUNCTION__, not C99 __func__
Also use _strtoui64 on modern M$ compilers */
#if defined(_MSC_VER) && _MSC_VER < 1300
#ifndef __POCC__ // <--- INSERT LINE
#define STRX(x) #x
#define STR(x) STRX(x)
#define __func__ __FILE__ ":" STR(__LINE__)
#define strtoull(x, y, z) (unsigned __int64) _atoi64(x)
#define strtoll(x, y, z) _atoi64(x)
#endif // <--- INSERT LINE
#else
#define __func__ __FUNCTION__
#define strtoull(x, y, z) _strtoui64(x, y, z)
#define strtoll(x, y, z) _strtoi64(x, y, z)
#endif /* _MSC_VER */
...
If someone have VS 2013, please test original code for us from
here