Use _seterrno instead of assigning to _errno.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4705 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2010-06-03 21:37:27 +00:00
parent eac4711731
commit aa8f817182
2 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ unsigned long __fastcall__ strtoul (const char* nptr, char** endptr, int base)
/* Handle overflow */
if (Ovf) {
errno = ERANGE;
_seterrno (ERANGE);
return ULONG_MAX;
}