Fix compile error on current ubuntu by clashing symbol declarations in goffice and regex.h

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18411 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-11-11 21:07:50 +00:00
parent 1e767585c8
commit ffa2c6ed89

View File

@ -3,6 +3,13 @@
#include "gnc-book.h" #include "gnc-book.h"
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include <goffice/goffice-features.h>
#if (GO_VERSION_EPOCH == 0) && (GO_VERSION_MAJOR == 7) && (GO_VERSION_MINOR == 8)
/* For libgoffice-0.7.8, disable its internal inclusion of <regutf8.h>
so to avoid clashing symbol definitions with <regex.h> */
# define GO_REGUTF8_H
#endif
#include <goffice/utils/go-glib-extras.h> #include <goffice/utils/go-glib-extras.h>
#include <string.h> #include <string.h>