[Barcode] Barcode library and C++

Alessandro Rubini rubini@gnu.org
Thu, 14 Sep 2000 14:34:17 +0200


Ok, this is the fix for C++ linking. It worked for me with sample.c; it
should work with everything else, in theory.

/alessandro (who dropped the c++ book after reading ten disgusting pages)

Index: barcode.h
===================================================================
RCS file: /data/cvs/barcode/barcode.h,v
retrieving revision 1.13
diff -u -d -u -r1.13 barcode.h
--- barcode.h	2000/08/28 09:29:32	1.13
+++ barcode.h	2000/09/14 12:31:20
@@ -71,6 +71,9 @@
 
 #define BARCODE_DEFAULT_MARGIN 10
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
 /*
  * Create and destroy barcode structures
  */
@@ -100,5 +103,9 @@
  * Return current version (integer and string)
  */
 extern int Barcode_Version(char *versionname);
+
+#ifdef  __cplusplus
+}
+#endif
 
 #endif /* _BARCODE_H_ */