Implement extern C++ shared structs
diff --git a/gen/src/write.rs b/gen/src/write.rs
index a9b8dde..32ccbf6 100644
--- a/gen/src/write.rs
+++ b/gen/src/write.rs
@@ -62,7 +62,9 @@
         match api {
             Api::Struct(strct) => {
                 out.next_section();
-                write_struct(out, strct);
+                if !types.cxx.contains(&strct.ident) {
+                    write_struct(out, strct);
+                }
             }
             Api::Enum(enm) => {
                 out.next_section();