Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#ifndef __HACKED_STDLIB_INCLUDED
2
#define __HACKED_STDLIB_INCLUDED
3
 
4
#ifndef __BUILDING_LIBS
5
#include_next <stdlib.h>
6
#else
7
typedef struct { int quot ; int rem ; } div_t ;
8
typedef struct { long quot ; long rem ; } ldiv_t ;
9
#define mblen( S, N )	mbtowc( 0, ( S ), ( N ) )
10
#endif
11
 
12
#ifndef MB_CUR_MAX
13
extern unsigned int _mb_cur_max ;
14
#define MB_CUR_MAX	_mb_cur_max
15
#endif
16
 
17
#ifndef EXIT_SUCCESS
18
#define EXIT_SUCCESS	0
19
#define EXIT_FAILURE	1
20
#endif
21
 
22
#ifndef RAND_MAX
23
#define RAND_MAX	0x7fffffff
24
#endif
25
 
26
#ifndef atexit
27
#define atexit( X )	on_exit ( ( X ), ( char * ) 0 )
28
#endif
29
 
30
#endif