Remove using namespace from cpp compat

This commit is contained in:
Rasmus Eneman
2019-08-25 19:46:18 +02:00
committed by Emilio Cobos Álvarez
parent 89e1d970b0
commit 4415614b99
4 changed files with 3 additions and 7 deletions
+3 -1
View File
@@ -216,7 +216,7 @@ impl Bindings {
out.write("#ifdef __cplusplus");
}
if self.config.language == Language::Cxx || self.config.cpp_compat {
if self.config.language == Language::Cxx {
if let Some(ref using_namespaces) = self.config.using_namespaces {
for namespace in using_namespaces {
out.new_line();
@@ -224,7 +224,9 @@ impl Bindings {
}
out.new_line();
}
}
if self.config.language == Language::Cxx || self.config.cpp_compat {
out.new_line();
out.write("extern \"C\" {");
out.new_line();
@@ -4,8 +4,6 @@
#include <stdlib.h>
#ifdef __cplusplus
using namespace std;
extern "C" {
#endif // __cplusplus
@@ -4,8 +4,6 @@
#include <stdlib.h>
#ifdef __cplusplus
using namespace std;
extern "C" {
#endif // __cplusplus
@@ -4,8 +4,6 @@
#include <stdlib.h>
#ifdef __cplusplus
using namespace std;
extern "C" {
#endif // __cplusplus