moved errno.h to top of platform includes

fixed bug where FormatMessage() did not ignore inserts

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401820
This commit is contained in:
David Anderson 2007-12-22 19:35:54 +00:00
parent a079a87f68
commit c3456b8804
2 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ void LibrarySystem::GetPlatformError(char *error, size_t maxlength)
#if defined PLATFORM_WINDOWS
DWORD dw = GetLastError();
FormatMessageA(
FORMAT_MESSAGE_FROM_SYSTEM,
FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dw,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),

View File

@ -63,9 +63,9 @@
#elif defined __linux__
#define PLATFORM_LINUX
#define PLATFORM_POSIX
#include <errno.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <dlfcn.h>
#include <sys/stat.h>
#define PLATFORM_MAX_PATH PATH_MAX