summaryrefslogtreecommitdiff
path: root/template/sizes.c.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/sizes.c.tmpl')
-rw-r--r--template/sizes.c.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/sizes.c.tmpl b/template/sizes.c.tmpl
index 848a29f4be..31060f5fea 100644
--- a/template/sizes.c.tmpl
+++ b/template/sizes.c.tmpl
@@ -43,7 +43,7 @@ Init_sizeof(void)
% next
% end
% cond = conditions[type]
-#if SIZEOF_<%= type.tr_cpp %> != 0<%= " && #{cond}" if cond %>
+#if defined(SIZEOF_<%= type.tr_cpp %>) && SIZEOF_<%= type.tr_cpp %> != 0<%= " && #{cond}" if cond %>
DEFINE(<%= type %>, <%= type.tr_cpp %>);
#endif
% end