atexit doesn't take a _onexit_t parameter.

This commit is contained in:
Peter Hunnisett 2002-02-22 21:20:39 +00:00 committed by Alexandre Julliard
parent d2a8f01ae6
commit 618a4e916b
2 changed files with 4 additions and 3 deletions

View File

@ -191,12 +191,13 @@ void MSVCRT_exit(int exitcode)
/********************************************************************* /*********************************************************************
* atexit (MSVCRT.@) * atexit (MSVCRT.@)
*/ */
int MSVCRT_atexit(_onexit_t func) int MSVCRT_atexit(void (*func)(void))
{ {
TRACE("(%p)\n", func); TRACE("(%p)\n", func);
return _onexit(func) == func ? 0 : -1; return _onexit((_onexit_t)func) == (_onexit_t)func ? 0 : -1;
} }
/********************************************************************* /*********************************************************************
* _purecall (MSVCRT.@) * _purecall (MSVCRT.@)
*/ */

View File

@ -138,7 +138,7 @@ char* _ultoa(unsigned long,char*,int);
void MSVCRT(_exit)(int); void MSVCRT(_exit)(int);
void MSVCRT(abort)(); void MSVCRT(abort)();
int MSVCRT(abs)(int); int MSVCRT(abs)(int);
int MSVCRT(atexit)(_onexit_t); int MSVCRT(atexit)(void (*)(void));
double MSVCRT(atof)(const char*); double MSVCRT(atof)(const char*);
int MSVCRT(atoi)(const char*); int MSVCRT(atoi)(const char*);
long MSVCRT(atol)(const char*); long MSVCRT(atol)(const char*);