summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 15:21:12 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 15:21:12 +0300
commit8b7ff12b4e7c3a6e824f6b4c5f5541eb572d9f39 (patch)
tree096f789689d2082a7fb9f288c06c1add58a42ffa /build
parent662c09717ae35a6d41b0b2d7250e1d59670146de (diff)
downloadrpm-8b7ff12b4e7c3a6e824f6b4c5f5541eb572d9f39.tar.gz
rpm-8b7ff12b4e7c3a6e824f6b4c5f5541eb572d9f39.tar.bz2
rpm-8b7ff12b4e7c3a6e824f6b4c5f5541eb572d9f39.zip
Add "c++ protection" to (hopefully) all of our internal headers
Diffstat (limited to 'build')
-rw-r--r--build/rpmbuild_internal.h8
-rw-r--r--build/rpmbuild_misc.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/build/rpmbuild_internal.h b/build/rpmbuild_internal.h
index c6813816e..24a68cf67 100644
--- a/build/rpmbuild_internal.h
+++ b/build/rpmbuild_internal.h
@@ -79,6 +79,10 @@ typedef enum rpmParseState_e {
#define STRIP_TRAILINGSPACE (1 << 0)
#define STRIP_COMMENTS (1 << 1)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup rpmbuild
* Create and initialize rpmSpec structure.
* @return spec spec file control structure
@@ -303,4 +307,8 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating);
RPM_GNUC_INTERNAL
rpmRC packageSources(rpmSpec spec, char **cookie);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMBUILD_INTERNAL_H */
diff --git a/build/rpmbuild_misc.h b/build/rpmbuild_misc.h
index 0d2dcd255..525af36f0 100644
--- a/build/rpmbuild_misc.h
+++ b/build/rpmbuild_misc.h
@@ -5,6 +5,10 @@
#include <rpm/rpmtypes.h>
#include <rpm/rpmds.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup rpmbuild
* Destroy uid/gid caches.
*/
@@ -106,4 +110,8 @@ int addReqProv(Header h, rpmTag tagN,
RPM_GNUC_INTERNAL
int rpmlibNeedsFeature(Header h, const char * feature, const char * featureEVR);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMBUILD_MISC_H */