drop __restrict some more, to please old compilers

Avoid the __restrict keyword in roken to appease older compilers.
This commit is contained in:
Michael Meffie
2012-08-16 15:19:44 -04:00
parent 3a30f3b0d1
commit 4a438db29d
3 changed files with 4 additions and 4 deletions

View File

@@ -1051,7 +1051,7 @@ localtime_r(const time_t *, struct tm *);
#define strtoll rk_strtoll #define strtoll rk_strtoll
#endif #endif
ROKEN_LIB_FUNCTION long long ROKEN_LIB_CALL ROKEN_LIB_FUNCTION long long ROKEN_LIB_CALL
strtoll(const char * __restrict nptr, char ** __restrict endptr, int base); strtoll(const char * nptr, char ** endptr, int base);
#endif #endif
#if !defined(HAVE_STRTOULL) || defined(NEED_STRTOULL_PROTO) #if !defined(HAVE_STRTOULL) || defined(NEED_STRTOULL_PROTO)
@@ -1059,7 +1059,7 @@ strtoll(const char * __restrict nptr, char ** __restrict endptr, int base);
#define strtoull rk_strtoull #define strtoull rk_strtoull
#endif #endif
ROKEN_LIB_FUNCTION unsigned long long ROKEN_LIB_CALL ROKEN_LIB_FUNCTION unsigned long long ROKEN_LIB_CALL
strtoull(const char * __restrict nptr, char ** __restrict endptr, int base); strtoull(const char * nptr, char ** endptr, int base);
#endif #endif
#if !defined(HAVE_STRSVIS) || defined(NEED_STRSVIS_PROTO) #if !defined(HAVE_STRSVIS) || defined(NEED_STRSVIS_PROTO)

View File

@@ -53,7 +53,7 @@
* alphabets and digits are each contiguous. * alphabets and digits are each contiguous.
*/ */
ROKEN_LIB_FUNCTION long long ROKEN_LIB_CALL ROKEN_LIB_FUNCTION long long ROKEN_LIB_CALL
strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) strtoll(const char * nptr, char ** endptr, int base)
{ {
const char *s; const char *s;
unsigned long long acc; unsigned long long acc;

View File

@@ -53,7 +53,7 @@
* alphabets and digits are each contiguous. * alphabets and digits are each contiguous.
*/ */
ROKEN_LIB_FUNCTION unsigned long long ROKEN_LIB_CALL ROKEN_LIB_FUNCTION unsigned long long ROKEN_LIB_CALL
strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) strtoull(const char * nptr, char ** endptr, int base)
{ {
const char *s; const char *s;
unsigned long long acc; unsigned long long acc;