Fix mixing C and C++ in templates
authorTomas Chvatal <tomas.chvatal@gmail.com>
Wed, 24 Jul 2013 20:38:55 +0000 (22:38 +0200)
committerTomas Chvatal <tomas.chvatal@gmail.com>
Wed, 24 Jul 2013 20:38:55 +0000 (22:38 +0200)
This kills the favorite error for some gcc versions about C in the
templates.

*snip*
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/basic_string.tcc:1068:3:
error: template with C linkage
make[2]: *** [zypp/CMakeFiles/zypp.dir/parser/xml/Node.cc.o] Error 1
*snip*

Basically we don't need to put this stuff here as it is done in the
headers themselves, so just prune the problematic code.

zypp/parser/xml/Node.cc
zypp/parser/xml/Reader.cc

index e3ac4cd..c90b8e1 100644 (file)
@@ -9,11 +9,8 @@
 /** \file zypp/parser/xml/Reader.cc
  *
 */
-extern "C"
-{
 #include <libxml/xmlreader.h>
 #include <libxml/xmlerror.h>
-}
 
 #include <iostream>
 
index 4e514f4..d06be45 100644 (file)
@@ -9,11 +9,8 @@
 /** \file zypp/parser/xml/Reader.cc
  *
 */
-extern "C"
-{
 #include <libxml/xmlreader.h>
 #include <libxml/xmlerror.h>
-}
 
 #include <iostream>