diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:21:12 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:21:12 +0300 |
commit | 8b7ff12b4e7c3a6e824f6b4c5f5541eb572d9f39 (patch) | |
tree | 096f789689d2082a7fb9f288c06c1add58a42ffa /build | |
parent | 662c09717ae35a6d41b0b2d7250e1d59670146de (diff) | |
download | rpm-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.h | 8 | ||||
-rw-r--r-- | build/rpmbuild_misc.h | 8 |
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 */ |