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:
parent
a079a87f68
commit
c3456b8804
@ -278,7 +278,7 @@ void LibrarySystem::GetPlatformError(char *error, size_t maxlength)
|
|||||||
#if defined PLATFORM_WINDOWS
|
#if defined PLATFORM_WINDOWS
|
||||||
DWORD dw = GetLastError();
|
DWORD dw = GetLastError();
|
||||||
FormatMessageA(
|
FormatMessageA(
|
||||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL,
|
NULL,
|
||||||
dw,
|
dw,
|
||||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||||
|
@ -63,9 +63,9 @@
|
|||||||
#elif defined __linux__
|
#elif defined __linux__
|
||||||
#define PLATFORM_LINUX
|
#define PLATFORM_LINUX
|
||||||
#define PLATFORM_POSIX
|
#define PLATFORM_POSIX
|
||||||
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#define PLATFORM_MAX_PATH PATH_MAX
|
#define PLATFORM_MAX_PATH PATH_MAX
|
||||||
|
Loading…
Reference in New Issue
Block a user