diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 20:56:26 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 20:56:26 -0700 |
commit | 592b631c192602869696f072878866d8f89a2316 (patch) | |
tree | a2b99099f53daf7c65ed5e99ab650518b7ae2595 /system/include | |
parent | 69ae3975ffde37d00dc84b2b446ab03dcef2f1e7 (diff) |
header fixes; fixes poppler
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/libc/assert.h | 8 | ||||
-rw-r--r-- | system/include/libc/stdint.h | 2 | ||||
-rw-r--r-- | system/include/libc/stdlib.h | 10 | ||||
-rw-r--r-- | system/include/libc/sys/dirent.h | 2 | ||||
-rw-r--r-- | system/include/libc/sys/unistd.h | 2 |
5 files changed, 13 insertions, 11 deletions
diff --git a/system/include/libc/assert.h b/system/include/libc/assert.h index e542b214..6035227f 100644 --- a/system/include/libc/assert.h +++ b/system/include/libc/assert.h @@ -36,10 +36,10 @@ extern "C" { # endif /* !__ASSERT_FUNC */ #endif /* !NDEBUG */ -void _EXFUN(__assert, (const char *, int, const char *) - _ATTRIBUTE ((__noreturn__))); -void _EXFUN(__assert_func, (const char *, int, const char *, const char *) - _ATTRIBUTE ((__noreturn__))); +void _EXFUN(__assert, (const char *, int, const char *)); +/* _ATTRIBUTE ((__noreturn__))); */ +void _EXFUN(__assert_func, (const char *, int, const char *, const char *)); +/* _ATTRIBUTE ((__noreturn__))); */ #ifdef __cplusplus } diff --git a/system/include/libc/stdint.h b/system/include/libc/stdint.h index 94759e96..d6cea665 100644 --- a/system/include/libc/stdint.h +++ b/system/include/libc/stdint.h @@ -33,7 +33,7 @@ extern "C" { /* Check if "long" is 64bit or 32bit wide */ #if __STDINT_EXP(LONG_MAX) > 0x7fffffff #define __have_long64 1 -#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) +#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) && !defined(EMSCRIPTEN) #define __have_long32 1 #endif diff --git a/system/include/libc/stdlib.h b/system/include/libc/stdlib.h index fb94b9f8..b5de59ee 100644 --- a/system/include/libc/stdlib.h +++ b/system/include/libc/stdlib.h @@ -59,7 +59,7 @@ int _EXFUN(__locale_mb_cur_max,(_VOID)); #define MB_CUR_MAX __locale_mb_cur_max() -_VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn))); +_VOID _EXFUN(abort,(_VOID)); /* _ATTRIBUTE ((noreturn))); */ int _EXFUN(abs,(int)); int _EXFUN(atexit,(_VOID (*__func)(_VOID))); double _EXFUN(atof,(const char *__nptr)); @@ -77,7 +77,7 @@ _PTR _EXFUN(bsearch,(const _PTR __key, int _EXFNPTR(_compar,(const _PTR, const _PTR)))); _PTR _EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size)); div_t _EXFUN(div,(int __numer, int __denom)); -_VOID _EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn))); +_VOID _EXFUN(exit,(int __status)); /* _ATTRIBUTE ((noreturn))); */ _VOID _EXFUN_NOTHROW(free,(_PTR)); char * _EXFUN(getenv,(const char *__string)); char * _EXFUN(_getenv_r,(struct _reent *, const char *__string)); @@ -107,14 +107,14 @@ int _EXFUN(mkostemp,(char *, int)); int _EXFUN(mkostemps,(char *, int, int)); int _EXFUN(mkstemp,(char *)); int _EXFUN(mkstemps,(char *, int)); -char * _EXFUN(mktemp,(char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); +char * _EXFUN(mktemp,(char *)); /* _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); */ #endif char * _EXFUN(_mkdtemp_r, (struct _reent *, char *)); int _EXFUN(_mkostemp_r, (struct _reent *, char *, int)); int _EXFUN(_mkostemps_r, (struct _reent *, char *, int, int)); int _EXFUN(_mkstemp_r, (struct _reent *, char *)); int _EXFUN(_mkstemps_r, (struct _reent *, char *, int)); -char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); +char * _EXFUN(_mktemp_r, (struct _reent *, char *)); /* _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); */ #endif _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR))); int _EXFUN(rand,(_VOID)); @@ -144,7 +144,7 @@ long _EXFUN(a64l,(const char *__input)); char * _EXFUN(l64a,(long __input)); char * _EXFUN(_l64a_r,(struct _reent *,long __input)); int _EXFUN(on_exit,(_VOID (*__func)(int, _PTR),_PTR __arg)); -_VOID _EXFUN(_Exit,(int __status) _ATTRIBUTE ((noreturn))); +_VOID _EXFUN(_Exit,(int __status)); /* _ATTRIBUTE ((noreturn))); */ int _EXFUN(putenv,(char *__string)); int _EXFUN(_putenv_r,(struct _reent *, char *__string)); _PTR _EXFUN(_reallocf_r,(struct _reent *, _PTR, size_t)); diff --git a/system/include/libc/sys/dirent.h b/system/include/libc/sys/dirent.h index 727dbf94..edcc5746 100644 --- a/system/include/libc/sys/dirent.h +++ b/system/include/libc/sys/dirent.h @@ -23,6 +23,8 @@ DIR *opendir(const char *); void seekdir(DIR *, long); long telldir(DIR *); DIR *readdir(DIR *); +int closedir(DIR *dirp); +void rewinddir(DIR *dirp); #ifdef __cplusplus } diff --git a/system/include/libc/sys/unistd.h b/system/include/libc/sys/unistd.h index 45887d11..a4110144 100644 --- a/system/include/libc/sys/unistd.h +++ b/system/include/libc/sys/unistd.h @@ -14,7 +14,7 @@ extern "C" { extern char **environ; -void _EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn))); +void _EXFUN(_exit, (int __status )); /* _ATTRIBUTE ((noreturn))); */ int _EXFUN(access,(const char *__path, int __amode )); unsigned _EXFUN(alarm, (unsigned __secs )); |