From 13f0dd2ec1221e20b1b3bc129c25a98acb17e4f6 Mon Sep 17 00:00:00 2001 From: Julian Lamb Date: Thu, 10 Sep 2009 21:50:52 -0400 Subject: [PATCH] Apply patch from Don Wooten to make libgerbv easier to use from C++ --- src/gerbv.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gerbv.h b/src/gerbv.h index e396153..627d014 100644 --- a/src/gerbv.h +++ b/src/gerbv.h @@ -58,6 +58,10 @@ the command "man gerbv") or go to the Gerbv homepage for documentation (http://g #ifndef __GERBV_H__ #define __GERBV_H__ +#if defined(__cplusplus) +extern "C" { +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -939,4 +943,8 @@ gerbv_attribute_destroy_HID_attribute (gerbv_HID_Attribute *attributeList, int n gerbv_HID_Attribute * gerbv_attribute_dup (gerbv_HID_Attribute *, int); +#if defined(__cplusplus) +z} +#endif + #endif /* __GERBV_H__ */ -- 2.11.4.GIT