Author: post Date: 2013-10-27 20:04:05 +0100 (Sun, 27 Oct 2013) New Revision: 604
Modified: RawSpeed/StdAfx.h Log: Fix MingW imports for cross compiling. Thanks to Tobias Ellinghaus. Modified: RawSpeed/StdAfx.h =================================================================== --- RawSpeed/StdAfx.h 2013-10-14 10:31:33 UTC (rev 603) +++ RawSpeed/StdAfx.h 2013-10-27 19:04:05 UTC (rev 604) @@ -29,17 +29,21 @@ #endif #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +#include <malloc.h> #include <stdio.h> +#ifdef __MINGW32__ +#include <stdlib.h> +#endif #if !defined(__unix__) && !defined(__APPLE__) #include <tchar.h> #include <io.h> -#include <Windows.h> +#include <windows.h> #ifndef __MINGW32__ #include <crtdbg.h> #else #include <stdexcept> #endif -#include <malloc.h> + #else // if unix #ifdef _XOPEN_SOURCE #if (_XOPEN_SOURCE < 600) _______________________________________________ Rawstudio-commit mailing list [email protected] http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit
