Re: Note for packagers whose packages need swig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 10, 2008 at 01:30:16PM +0100, Miloslav Trmač wrote:
> Adam Tkac píše v Po 10. 11. 2008 v 14:09 +0100:
> > there is long standing problem with SWIG when you are wrapping around
> > C code and use system headers. SWIG doesn't define "standard" C
> > preprocessor macros.
> > 
> > I think every
> > maintainer should check his package and if it uses system C headers he
> > should add this to .i file (SWIG template)
> > 
> > $ cpp -dM /dev/null | grep -v __STDC__ > cpp_macros.h # SWIG defines __STDC__ macro
> > 
> > and then add '%include "cpp_macros.h" to top of .i file
> Is there any reason not to use %import instead?  AFAICS the macros still
> work in #ifdefs, but they are not added to the generated file.
> 	Mirek
> 

Yes, %import will be better than %include.

Adam

-- 
Adam Tkac, Red Hat, Inc.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux