Several fixes to build under stricter C++11

Add missing #include to various files.

strings.h isn't provided by MSVC so we don't include it there; it's needed
for other OSes/compilers.

Get rid of pre-ISO-C malloc.h includes; malloc is provided by stdlib.h.

Fixes some linuxisms.

Prepend __builtin_ to __clear_cache, calling it without the prefix is a
GNU extension.
This commit is contained in:
Diogo Franco (Kovensky) authored and Kovensky committed 2012-11-21 14:33:50 -03:00
1 parent cd93e49584
commit 6108e36ae9
25 files changed
+52 -11

No files matched your search

+4
View File
@@ -98,6 +98,10 @@ bool MsgAlert(bool yes_no, int Style, const char* format, ...)
return true;
}
#ifdef _WIN32
#include <windows.h>
#endif
// Default non library dependent panic alert
bool DefaultMsgHandler(const char* caption, const char* text, bool yes_no, int Style)
{