Renamed __cleanup() to _IO_cleanup() to be able to compile the glibc version

as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3147 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-05-03 14:40:53 +00:00
parent 2b64308b14
commit f57208999e
3 changed files with 3 additions and 3 deletions

View File

@ -170,6 +170,6 @@ void
__sinit()
{
/* make sure we clean up on exit */
__cleanup = _cleanup; /* conservative */
_IO_cleanup = _cleanup; /* conservative */
__sdidinit = 1;
}

View File

@ -48,7 +48,7 @@ fpos_t __sseek (void *, fpos_t, int);
int __sclose (void *);
void __sinit (void);
void _cleanup (void);
void (*__cleanup) (void);
void (*_IO_cleanup) (void);
void __smakebuf (FILE *);
int __swhatbuf (FILE *, size_t *, int *);
int _fwalk (int (*)(FILE *));

View File

@ -68,7 +68,7 @@ __smakebuf(fp)
fp->_bf._size = 1;
return;
}
__cleanup = _cleanup;
_IO_cleanup = _cleanup;
flags |= __SMBF;
fp->_bf._base = fp->_p = p;
fp->_bf._size = size;