Remove rpm compat define from header files.
authorMichael Andres <ma@suse.de>
Wed, 6 May 2009 10:14:18 +0000 (12:14 +0200)
committerMichael Andres <ma@suse.de>
Wed, 6 May 2009 10:14:18 +0000 (12:14 +0200)
zypp/target/rpm/BinHeader.cc
zypp/target/rpm/librpm.h
zypp/target/rpm/librpmDb.cv3.cc

index 5485da861916a5b7cc6befe0b01c65ab07f9faf5..73dc74830cf7506695feaa6f73e4c00709f104ed 100644 (file)
  *
 */
 #include "librpm.h"
+extern "C"
+{
+#ifndef _RPM_4_4_COMPAT
+typedef int32_t rpm_count_t;
+#endif
+}
 
 #include <iostream>
 
index e80dafd80b6e649b3117358a458bc6fc0b9b152c..430f77e8371fabb02b8212c65dac315bdc0f1f70 100644 (file)
@@ -19,10 +19,6 @@ extern "C"
 #include <rpm/rpmdb.h>
 #include <rpm/rpmts.h>
 #include <fcntl.h>
-
-#ifndef _RPM_4_4_COMPAT
-typedef int32_t rpm_count_t;
-#endif
 }
 
 #endif // ZYPP_TARGET_RPM_LIBRPM_H
index 65c1c41bd2540c4cf5275e75356a374d274932c1..cc353ff98c2211570e6687246278905875687a1c 100644 (file)
 */
 
 #include "librpm.h"
+extern "C"
+{
+#ifndef _RPM_4_4_COMPAT
+typedef int32_t rpm_count_t;
+#endif
+}
 
 #include <iostream>