[dia/dia-0-97] Add C++ guards, to make wmf plug-in link on win32
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-0-97] Add C++ guards, to make wmf plug-in link on win32
- Date: Wed, 27 Apr 2011 20:26:25 +0000 (UTC)
commit a81bd61b6d390ddfdb8e8b4a12943559bd2bbfd5
Author: Hans Breuer <hans breuer org>
Date: Sun Mar 27 12:28:59 2011 +0200
Add C++ guards, to make wmf plug-in link on win32
This is a fix for the fix:
Commit:15dd90da6635d5d8d36546f6a0524f6c03c30179
* Newer gcc chokes on cascaded extern "C"
error: template with C linkage ...
(cherry picked from commit feeefe286b7aa9184c78241fc43a10453b8397bd)
lib/dia_image.h | 3 +++
lib/font.h | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/dia_image.h b/lib/dia_image.h
index 6be93ce..911c8ed 100644
--- a/lib/dia_image.h
+++ b/lib/dia_image.h
@@ -24,6 +24,7 @@
#include "geometry.h"
+G_BEGIN_DECLS
void dia_image_init(void);
@@ -55,5 +56,7 @@ const guint8 *dia_image_rgba_data(const DiaImage *image);
const char *dia_image_filename(const DiaImage *image);
const GdkPixbuf* dia_image_pixbuf (const DiaImage *image);
+G_END_DECLS
+
#endif /* DIA_IMAGE_H */
diff --git a/lib/font.h b/lib/font.h
index 741a386..28a4e86 100644
--- a/lib/font.h
+++ b/lib/font.h
@@ -25,6 +25,8 @@
#include "dia-enums.h"
#include "geometry.h"
+G_BEGIN_DECLS
+
/* Do NOT put these strings through the .po mechanism. If you need to add
non-Roman alternatives, please insert them in the list */
#define BASIC_SANS_FONT "arial, helvetica, helv, sans"
@@ -199,5 +201,6 @@ real* dia_font_get_sizes(const char* string, DiaFont *font, real height,
/* -------- Font and string functions - scaled versions.
Use these version in Renderers, exclusively. */
+G_END_DECLS
#endif /* FONT_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]