From 0b54514a86f746e75ff0d922ed3ab758de8caa0c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 00:45:11 +0100 Subject: [PATCH] `errno` is reserved; use `errorno` --- src/platform_cygwin.cc | 4 ++-- src/platform_win32.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform_cygwin.cc b/src/platform_cygwin.cc index 4fcade8bce..d6ad3e1ff5 100644 --- a/src/platform_cygwin.cc +++ b/src/platform_cygwin.cc @@ -14,11 +14,11 @@ static char *process_title = NULL; // Does the about the same as perror(), but for windows api functions static void _winapi_perror(const char* prefix = NULL) { - DWORD errno = GetLastError(); + DWORD errorno = GetLastError(); char *errmsg; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, errno, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&errmsg, 0, NULL); + NULL, errorno, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&errmsg, 0, NULL); // FormatMessage messages include a newline character diff --git a/src/platform_win32.cc b/src/platform_win32.cc index 11659e038c..b828cc5a0b 100644 --- a/src/platform_win32.cc +++ b/src/platform_win32.cc @@ -15,11 +15,11 @@ static char *process_title = NULL; // Does the about the same as perror(), but for windows api functions void winapi_perror(const char* prefix = NULL) { - DWORD errno = GetLastError(); + DWORD errorno = GetLastError(); char *errmsg; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, errno, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&errmsg, 0, NULL); + NULL, errorno, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&errmsg, 0, NULL); // FormatMessage messages include a newline character