Remove using namespace from cpp compat
This commit is contained in:
committed by
Emilio Cobos Álvarez
parent
89e1d970b0
commit
4415614b99
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user