RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 24-Aug-2007 22:10:40
Branch: HEAD Handle: 2007082421104000
Modified files:
rpm/lib rpmlead.h
Log:
move C++ wrapper to outmost location; remove warning related to the
fact that even for an opaque data type the underlying structure has
needs a simple forward declaration
Summary:
Revision Changes Path
2.20 +6 -4 rpm/lib/rpmlead.h
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/lib/rpmlead.h
============================================================================
$ cvs diff -u -r2.19 -r2.20 rpmlead.h
--- rpm/lib/rpmlead.h 17 Aug 2007 16:04:51 -0000 2.19
+++ rpm/lib/rpmlead.h 24 Aug 2007 20:10:40 -0000 2.20
@@ -6,6 +6,10 @@
* Routines to read and write an rpm lead structure for a a package.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(_RPMLEAD_INTERNAL)
#define RPMLEAD_BINARY 0
@@ -35,10 +39,8 @@
short signature_type; /*!< Signature header type (RPMSIG_HEADERSIG) */
/*@unused@*/ char reserved[16]; /*!< Pad to 96 bytes -- 8 byte aligned! */
} ;
-#endif
-
-#ifdef __cplusplus
-extern "C" {
+#else
+struct rpmlead;
#endif
/*@unchecked@*/
@@ .
Received on Fri Aug 24 22:10:40 2007