From: Matthijs Kooijman Date: Mon, 11 Jun 2007 21:17:17 +0000 (+0200) Subject: * Include windows.h by default on windows, most stuff probably needs it. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=matthijs%2FABM2.git * Include windows.h by default on windows, most stuff probably needs it. --- diff --git a/ABM2/porting.h b/ABM2/porting.h index dfa9a33..3a514f5 100644 --- a/ABM2/porting.h +++ b/ABM2/porting.h @@ -1,7 +1,9 @@ #if !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_) #define AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_ -#ifndef WIN32 +#ifdef WIN32 + #include +#else #define vsprintf_s vsnprintf #define sprintf_s snprintf #define strcpy_s(dst, size, src) strncpy(dst, src, size)