Index: mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl |
diff --git a/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl b/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl |
index d298cc3f2a473a2649910fd208382da7b47434b9..e804fc638d7bf50f3014728f97923c7537986dbc 100644 |
--- a/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl |
+++ b/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl |
@@ -13,7 +13,9 @@ |
#include "{{import.module.path}}-internal.h" |
{%- endfor %} |
+{%- if namespace %} |
namespace {{namespace}} { |
+{%- endif %} |
{#--- Wrapper forward declarations #} |
{% for struct in structs %} |
@@ -32,6 +34,8 @@ namespace internal { |
#pragma pack(pop) |
} // namespace internal |
+{%- if namespace %} |
} // namespace {{namespace}} |
+{%- endif %} |
#endif // {{header_guard}} |