Add missing c++ ifdefs to rpmtag and rpmtypes headers
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 30 Jan 2008 08:23:47 +0000 (10:23 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 30 Jan 2008 08:23:47 +0000 (10:23 +0200)
lib/rpmtag.h
lib/rpmtypes.h

index 7664bbb..35a2acc 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _RPMTAG_H
 #define _RPMTAG_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \ingroup rpmtag
  * Automatically generated table of tag name/value pairs.
  */
@@ -299,4 +303,8 @@ rpm_tagtype_t rpmTagGetType(rpm_tag_t tag);
  */
 rpm_tag_t rpmTagGetValue(const char * tagstr);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RPMTAG_H */
index 5582b5e..75a825a 100644 (file)
@@ -7,6 +7,10 @@
 
 #include <rpm/rpmints.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef const char *    errmsg_t;
 
 typedef int32_t                rpm_tag_t;
@@ -16,4 +20,8 @@ typedef uint32_t      rpm_count_t;
 typedef void *         rpm_data_t;
 typedef const void *   rpm_constdata_t;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RPMTYPES_H */