From 96637a8c35a10b60a759f50b9be2401f993ab0ca Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 15 Sep 2009 21:01:20 +0000 Subject: [PATCH] Make system() fastcall like most other library functions. git-svn-id: svn://svn.cc65.org/cc65/trunk@4178 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/stdlib.h | 4 ++-- libsrc/common/system.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index 68f7fd9bf..a58d29c87 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -114,8 +114,8 @@ char* __fastcall__ getenv (const char* name); void __fastcall__ qsort (void* base, size_t count, size_t size, int (*compare) (const void*, const void*)); long __fastcall__ strtol (const char* nptr, char** endptr, int base); -unsigned long __fastcall__ strtoul (const char* nptr, char** endptr, int base); -int system (const char* s); +unsigned long __fastcall__ strtoul (const char* nptr, char** endptr, int base); +int __fastcall__ system (const char* s); /* Non-ANSI functions */ void __fastcall__ _swap (void* p, void* q, size_t size); diff --git a/libsrc/common/system.c b/libsrc/common/system.c index c6bfb667c..6626ace87 100644 --- a/libsrc/common/system.c +++ b/libsrc/common/system.c @@ -8,7 +8,7 @@ #include #include -int system (const char* s) +int __fastcall__ system (const char* s) { if (s == NULL) { return 0; /* no shell */ -- 2.39.5