the redefinion of 'strdup':
portability.h(104): warning C4005: 'strdup': macro redefinition
f:\ProgramFiler-x86\WindowsKits\Include\10.0.10586.0\ucrt\crtdbg.h(319):
note: see previous definition of 'strdup'
It's definition is:
#define strdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
Undoing that in "portability.h" would defeat the purpose of '_DEBUG' mode.
#endif
#ifdef _MSC_VER
+ #ifndef _DEBUG
#define strdup _strdup
+ #endif
#define sscanf sscanf_s
#define setbuf(x, y) \
setvbuf((x), (y), _IONBF, 0)