base/Gettext.h must not be included by any zypp header, include it
authorMartin Vidner <mvidner@suse.cz>
Thu, 19 Jul 2007 17:28:16 +0000 (17:28 +0000)
committerMartin Vidner <mvidner@suse.cz>
Thu, 19 Jul 2007 17:28:16 +0000 (17:28 +0000)
in .cc files instead.
Otherwise zypp would export its idea about the _ macro to any
application using zypp, causing conflicts with their own _ and
confusing Bubli.

zypp/base/Exception.h
zypp/repo/RepoProvideFile.cc

index 040f72e..e9c3253 100644 (file)
@@ -16,8 +16,6 @@
 #include <iosfwd>
 #include <stdexcept>
 
-#include "zypp/base/Gettext.h"
-
 ///////////////////////////////////////////////////////////////////
 namespace zypp
 { /////////////////////////////////////////////////////////////////
index 38c7a8d..3e22b25 100644 (file)
@@ -14,6 +14,7 @@
 #include <sstream>
 #include <set>
 
+#include "zypp/base/Gettext.h"
 #include "zypp/base/Logger.h"
 #include "zypp/repo/RepoProvideFile.h"
 #include "zypp/ZYppCallbacks.h"