Mercurial > mplayer.hg
diff libdha/libdha.c @ 4174:4cfb6b9a6da3
api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
author | alex |
---|---|
date | Tue, 15 Jan 2002 15:59:53 +0000 |
parents | 2e3262002acb |
children | 05ac3586db02 |
line wrap: on
line diff
--- a/libdha/libdha.c Tue Jan 15 15:31:30 2002 +0000 +++ b/libdha/libdha.c Tue Jan 15 15:59:53 2002 +0000 @@ -7,6 +7,7 @@ Modified for GATOS/win/gfxdump. 2002 - library implementation by Nick Kurshev + - some changes by Alex Beregszaszi supported O/S's: SVR4, UnixWare, SCO, Solaris, FreeBSD, NetBSD, 386BSD, BSDI BSD/386, @@ -26,6 +27,14 @@ #include <sys/types.h> #include <unistd.h> +/* instead exit() use libdha_exit, and do the 'mother-application' deinit + only in this code */ +void libdha_exit(const char *message, int level) +{ + printf("libdha: FATAL: %s\n", message); + exit(level); /* FIXME */ +} + #if defined(_WIN32) #include "sysdep/libdha_win32.c" #elif defined (__EMX__) @@ -97,3 +106,4 @@ { outl(idx,val); } +