[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pdf-devel
Subject:    Re: [pdf-devel] add #ifdef __cplusplus support in pdf.h
From:       Aleksander Morgado <aleksander () es ! gnu ! org>
Date:       2009-04-06 7:47:26
Message-ID: 49D9B38E.5070409 () es ! gnu ! org
[Download RAW message or body]


> I tried to use the lib in a c++ project but failed because of missing
> #ifdef __cplusplus in the header file pdf.h.
> 
> Pls add
> #ifdef __cplusplus
> extern "C" {
> #endif
> 
> and
> 
> #ifdef __cplusplus
> }
> #endif
> 
> to the headers.
> 
> I did my own but creating a patch (bzr diff -r ancestor:) fails as
> pdf.h is autocreated and not under version control.

The correct way of implementing it, if needed, would be to modify the
pdf.h target in src/Makefile.am, adding more "echo" lines before and
after merging all the per-module headers in a single one.

Cheers,
-Aleksander


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic