summaryrefslogtreecommitdiffstats
path: root/genprotsym.txr
diff options
context:
space:
mode:
Diffstat (limited to 'genprotsym.txr')
-rw-r--r--genprotsym.txr6
1 files changed, 4 insertions, 2 deletions
diff --git a/genprotsym.txr b/genprotsym.txr
index 0a54946e..fefff0cc 100644
--- a/genprotsym.txr
+++ b/genprotsym.txr
@@ -52,18 +52,20 @@ val @(coll)@{sym /[A-Za-z0-9_]+_[sk]/}@/[,;]/@\
#include "lib.h"
@ (repeat :vars (gpp))
-@ (if gpp `#if @{gpp " && "}`)
@ (repeat)
extern val @(rep)@gsym, @(last)@gsym;@(end)
+@ (first)
+@(if gpp `#if @{gpp " && "}\n`)extern val @(rep)@gsym, @(last)@gsym;@(end)
@ (end)
@ (if gpp "#endif")
@ (end)
val *protected_sym[] = {
@ (repeat :vars (gpp))
-@ (if gpp `#if @{gpp " && "}`)
@ (repeat)
@(rep)&@gsym, @(last)&@gsym,@(end)
+@ (first)
+@(if gpp `#if @{gpp " && "}\n`) @(rep)&@gsym, @(last)&@gsym,@(end)
@ (end)
@ (if gpp "#endif")
@ (end)