From: Jaakko Heinonen Date: Tue, 2 Aug 2005 08:17:12 +0000 (+0000) Subject: - use #warning only with gcc X-Git-Tag: upstream/0.6.1~2^2~187 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=ca01329debd13aa91da61e90e6ad72db4ee8613a;p=pkg%2Fabook.git - use #warning only with gcc --- diff --git a/abook_rl.c b/abook_rl.c index 7e51aa1..6e6fe00 100644 --- a/abook_rl.c +++ b/abook_rl.c @@ -94,11 +94,16 @@ rline_prep_terminal(int dummy) #if (RL_VERSION_MAJOR == 4 && RL_VERSION_MINOR > 2) || (RL_VERSION_MAJOR > 4) /* nothing */ #else -# warning "You seem to have rather old readline version or non-GNU \ -version of the readline. If you have problems please use \ + /* + * #warning is an extension which all compilers don't support + */ +# ifdef __GNUC__ +# warning "You seem to have rather old readline version or \ +non-GNU version of the readline. If you have problems please use \ GNU readline 4.3 or newer. \ GNU readline versions 4.0, 4.1 and 4.2 should be OK despite \ of this warning." +# endif /* * this kludge avoids older readline libraries to print a newline */