From: <man...@us...> - 2014-10-06 19:03:38
|
Revision: 4400 http://sourceforge.net/p/modplug/code/4400 Author: manxorist Date: 2014-10-06 19:03:28 +0000 (Mon, 06 Oct 2014) Log Message: ----------- [Fix] The removal of iostream headers in other often-included headers made <cstdlib> not get included in a lot of files in at least emscripten builds. As abs() is required all over the place and the header is not that big, include it everywhere via stdafx.h. Modified Paths: -------------- trunk/OpenMPT/common/stdafx.h trunk/OpenMPT/soundlib/Fastmix.cpp Modified: trunk/OpenMPT/common/stdafx.h =================================================================== --- trunk/OpenMPT/common/stdafx.h 2014-10-06 17:08:53 UTC (rev 4399) +++ trunk/OpenMPT/common/stdafx.h 2014-10-06 19:03:28 UTC (rev 4400) @@ -73,6 +73,9 @@ // <cstring> // <time.h> +#include <cstdlib> +#include <stdlib.h> + //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. Modified: trunk/OpenMPT/soundlib/Fastmix.cpp =================================================================== --- trunk/OpenMPT/soundlib/Fastmix.cpp 2014-10-06 17:08:53 UTC (rev 4399) +++ trunk/OpenMPT/soundlib/Fastmix.cpp 2014-10-06 19:03:28 UTC (rev 4400) @@ -30,7 +30,6 @@ #include "FloatMixer.h" #endif // MPT_INTMIXER #include <algorithm> -#include <cstdlib> OPENMPT_NAMESPACE_BEGIN This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |