From: Michal Rokos Date: 2003-07-22T16:56:46+09:00 Subject: Re: [RFC] Add have_defined() and rework have_struct_member() Hello, On Tue, Jul 22, 2003 at 02:56:08AM +0900, nobu.nokada@softhome.net wrote: > > Unfortunately macro_defined? doesn't set and $defs. So you will do > > > > def have_defined(macro, header=nil) > > checking_for "#{macro}" do > > if macro_defined?(macro, cpp_include(header)) > > $defs.push(format("-DHAVE_%s", macro.upcase)) > > true > > else > > false > > end > > end > > end > > Is it necessary? You can use that macro itself in preprocessor > directives. Of cource it is NOT necessary. I was just blind. Dumb idea, sorry. Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague e-mail: m.rokos@sh.cvut.cz icq: 36118339 jabber: majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-