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 5485da8..73dc748 100644 (file)
  *
 */
 #include "librpm.h"
+extern "C"
+{
+#ifndef _RPM_4_4_COMPAT
+typedef int32_t rpm_count_t;
+#endif
+}
 
 #include <iostream>
 
index e80dafd..430f77e 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 65c1c41..cc353ff 100644 (file)
 */
 
 #include "librpm.h"
+extern "C"
+{
+#ifndef _RPM_4_4_COMPAT
+typedef int32_t rpm_count_t;
+#endif
+}
 
 #include <iostream>