aboutsummaryrefslogtreecommitdiff
path: root/msg/templates/msg.h.template
diff options
context:
space:
mode:
Diffstat (limited to 'msg/templates/msg.h.template')
-rw-r--r--msg/templates/msg.h.template7
1 files changed, 4 insertions, 3 deletions
diff --git a/msg/templates/msg.h.template b/msg/templates/msg.h.template
index c27daed83..826418d11 100644
--- a/msg/templates/msg.h.template
+++ b/msg/templates/msg.h.template
@@ -165,12 +165,13 @@ def get_field_init(field):
return '\n\t%s(%s),'%(field.name, init_value)
}
-@#ifdef __cplusplus
+#ifdef __cplusplus
@#class @(spec.short_name)_s {
+struct __EXPORT @(spec.short_name)_s {
@#public:
-@#else
+#else
struct @(spec.short_name)_s {
-@#endif
+#endif
@{
# loop over all fields and print the type and name
for field in spec.parsed_fields():