1 #pragma once 2 #include <direct.h> 3 #include <string> 4 #include <time.h> 5 #include <Windows.h> 6 7 extern "C" 8 { 9 10 #if !defined(_MSC_VER) || (_MSC_VER < 1900) 11 int snprintf(char *buffer, size_t count, const char *fmt, ...); 12 #endif 13 #ifdef _WIN64 14 void ___chkstk(); 15 void usleep(int ms); 16 double __strtod(const char *_Str, char **_EndPtr); 17 18 struct timezone 19 { 20 int tz_minuteswest; /* minutes W of Greenwich */ 21 int tz_dsttime; /* type of dst correction */ 22 }; 23 24 int gettimeofday(struct timeval *tv, struct timezone *tz); 25 #endif 26 27 }; 28 29 //#ifdef _DEBUG 30 //#include <crtdbg.h> 31 //#define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__) 32 //#else 33 //#define DEBUG_NEW new 34 //#endif