mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Use __MINGW32__ rather than __MINGW__ because gcc does that too.
NB. It seems some recent patches put ___MINGW32__ in the public headers ... that needs to be fixed as the headers should be system independent! git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21795 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9919e36065
commit
bfb6ebd9bc
40 changed files with 247 additions and 247 deletions
|
@ -2214,7 +2214,7 @@ GSAutoreleasedBuffer(unsigned size)
|
|||
|
||||
|
||||
/* Getting a system error message on a variety of systems */
|
||||
#ifdef __MINGW__
|
||||
#ifdef __MINGW32__
|
||||
LPTSTR GetErrorMsg(DWORD msgId)
|
||||
{
|
||||
LPVOID lpMsgBuf;
|
||||
|
@ -2244,12 +2244,12 @@ strerror(int eno)
|
|||
return(sys_errlist[eno]);
|
||||
}
|
||||
#endif
|
||||
#endif /* __MINGW__ */
|
||||
#endif /* __MINGW32__ */
|
||||
|
||||
const char *
|
||||
GSLastErrorStr(long error_id)
|
||||
{
|
||||
#ifdef __MINGW__
|
||||
#ifdef __MINGW32__
|
||||
return GetErrorMsg(GetLastError());
|
||||
#else
|
||||
return strerror(error_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue