diff --git a/src/Makefile.inc b/src/Makefile.inc index 4fc3804..3bd5131 100644 --- a/src/Makefile.inc +++ b/src/Makefile.inc @@ -2,8 +2,8 @@ # Global 'Source' Options # allow you to change your default compiler without affecting your other work -CC = gcc295 -CXX = g++295 +CC = gcc +CXX = g++ LD = ld AR = ar REMOVE = rm -rf diff --git a/src/lib/libc_old/stdlib/rand.c b/src/lib/libc_old/stdlib/rand.c index bc37554..f31c3d2 100644 --- a/src/lib/libc_old/stdlib/rand.c +++ b/src/lib/libc_old/stdlib/rand.c @@ -62,4 +62,5 @@ int rand(void) { return(((holdrand = holdrand * 214013L + 2531011L) >> 16) & 0x7fff); -} \ No newline at end of file +} + diff --git a/src/lib/libc_old/stdlib/strtol.c b/src/lib/libc_old/stdlib/strtol.c index 75caf0e..df3139a 100644 --- a/src/lib/libc_old/stdlib/strtol.c +++ b/src/lib/libc_old/stdlib/strtol.c @@ -3,6 +3,8 @@ #include #include +static int errno; + long strtol(const char * __restrict nptr, char ** __restrict endptr, int base) @@ -87,6 +89,7 @@ //errno = ERANGE; } else if (!any) { noconv: + errno = 2; //errno = EINVAL; } else if (neg) acc = -acc;