#include <io.h>
#include <process.h>
#include <errno.h>
+#include <malloc.h>
#if defined(_DEBUG) && !defined(__MINGW32__) && !defined(__MINGW64__)
#include <crtdbg.h>
#endif
#endif
#endif
-#if defined(_MT) && defined(MAGICKCORE_WINDOWS_SUPPORT)
-# define SAFE_GLOBAL __declspec(thread)
-#else
-# define SAFE_GLOBAL
-#endif
-
#if defined(__BORLANDC__)
#undef _O_RANDOM
#define _O_RANDOM 0