From: Martin Baute Date: Sun, 13 Mar 2016 17:45:51 +0000 (+0100) Subject: Missing declarations / definitions added to stdlib.h. X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=1a0ec80bd1d2439b7c8e4e16905f26c3fa39630e Missing declarations / definitions added to stdlib.h. --- diff --git a/includes/stdlib.h b/includes/stdlib.h index e724bf7..e751dbe 100644 --- a/includes/stdlib.h +++ b/includes/stdlib.h @@ -22,6 +22,15 @@ typedef _PDCLIB_size_t size_t; #define NULL _PDCLIB_NULL #endif +#ifndef __cplusplus + +#ifndef _PDCLIB_WCHAR_T_DEFINED +#define _PDCLIB_WCHAR_T_DEFINED _PDCLIB_WCHAR_T_DEFINED +typedef _PDCLIB_wchar_t wchar_t; +#endif + +#endif + #ifndef _PDCLIB_MB_CUR_MAX_DEFINED #define _PDCLIB_MB_CUR_MAX_DEFINED #define MB_CUR_MAX (_PDCLIB_mb_cur_max()) @@ -183,6 +192,13 @@ _PDCLIB_noreturn void exit( int status ) _PDCLIB_nothrow; */ _PDCLIB_noreturn void _Exit( int status ) _PDCLIB_nothrow; +/* Quick process termination. Functions registered by at_quick_exit() (see + above) are called, and the process terminated. No functions registered + with atexit() (see above) or signal handlers are called. + quick_exit() does not return. +*/ +_PDCLIB_noreturn void quick_exit( int status ); + /* Search an environment-provided key-value map for the given key name, and return a pointer to the associated value string (or NULL if key name cannot be found). The value string pointed to might be overwritten by a subsequent