GNOME Bugzilla – Bug 484666
libcroco-0.6 header file cr-fonts.h should be included just once.
Last modified: 2007-10-11 07:06:46 UTC
Please describe the problem: /usr/include/libcroco-0.6/libcroco/cr-fonts.h is wrong. This header should be included just once. It needs an #ifndef wrapper around all its other contents. Steps to reproduce: 1. Try to build app that include the cr-fonts.h more than once. 2. 3. Actual results: multiple functions declaration. Expected results: should not complain about the functions defined in this header file, Does this happen every time? yes Other information:
I don't really understand your problem because in the last svn version I can clearly see this at the beginning and end of cr-fonts.h: -=-=- #ifndef __CR_FONTS_H__ #define __CR_FONTS_H__ <SNIP> #endif -=-=- So how is it possible that it is included multiple times in your environment ?
Hi Benjamin, Hmm, I just checked svn trunk. you are absolutely correct! I must have an older tarball version of the release which does not this change. It seems that this is fixed in trunk but still is in the 0.6 trunk. http://svn.gnome.org/viewcvs/libcroco/branches/libcroco-0-6-0/src/cr-fonts.h?view=annotate and since we uses tarball releases and hence seeing the problem. Any chance of releasing a new tarball soon? Anyway, feel free to close this bug :) Thanks for you prompt response! -Ghee
Ok I'll fill a ticket for a new release.
THANKS! :)
*** Bug 485532 has been marked as a duplicate of this bug. ***
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.