From 57fde54f9974aae5e32a4df8c99d8b9c17d66261 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 16 Jul 2001 04:06:35 +0000 Subject: [PATCH] * mad.h: Include stdio.h to prevent redefining mad_tempnam(). * main.c [HAVE_X && HAVE_MAD]: Don't call done_key(). --- src/ChangeLog | 3 +++ src/mad.h | 1 + src/main.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 657f3f6c3..f5dc9b85a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-07-15 Pavel Roskin + * mad.h: Include stdio.h to prevent redefining mad_tempnam(). + * main.c [HAVE_X && HAVE_MAD]: Don't call done_key(). + * dlg.h: Remove declarations of non-existent functions. [HAVE_X]: Disable color constants - they shouldn't be used. diff --git a/src/mad.h b/src/mad.h index 8706aba8c..8ab1063fb 100644 --- a/src/mad.h +++ b/src/mad.h @@ -2,6 +2,7 @@ #define __MAD_H /* To prevent molesting these files with the malloc/calloc/free macros. */ +#include #include #if !defined(STDC_HEADERS) && defined(HAVE_MALLOC_H) # include diff --git a/src/main.c b/src/main.c index fc063dd26..13b39791f 100644 --- a/src/main.c +++ b/src/main.c @@ -3222,7 +3222,7 @@ main (int argc, char *argv []) g_free (last_wd_string); } -#ifdef HAVE_MAD +#if defined(HAVE_MAD) && !defined(HAVE_X) done_key (); #endif