// Copyright 2019-2020 Mark Callow // SPDX-License-Identifier: Apache-2.0 // stdafx.h #pragma once #define _CRT_SECURE_NO_WARNINGS #include #include #ifdef _WIN32 #include #include #if _MSC_VER < 1900 #define snprintf _snprintf #endif #else #include #define _tmain main #define _TCHAR char #define _tcsncmp strncmp #define _tcscmp strcmp #define _tgetenv getenv #define _tcscpy strcpy #define _tcsncpy strncpy #define _tcsnpcpy strnpcpy #define _stscanf sscanf #define _tcslen strlen #define _tcscat strcat #define _tcsrchr strrchr #define _tcschr strchr #define _setmode(x, y) 0 #define _tfopen fopen #define _trename rename #define _tunlink unlink #define _T(x) x #endif #include #include #include