summaryrefslogtreecommitdiff
path: root/source4/build/pidl/header.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r--source4/build/pidl/header.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm
index 5dda18d1b5..31194918ad 100644
--- a/source4/build/pidl/header.pm
+++ b/source4/build/pidl/header.pm
@@ -208,11 +208,15 @@ sub HeaderTypedefProto($)
}
#####################################################################
-# parse a typedef
+# parse a const
sub HeaderConst($)
{
my($const) = shift;
- $res .= "#define $const->{NAME}\t( $const->{VALUE} )\n";
+ if (!defined($const->{ARRAY_LEN})) {
+ $res .= "#define $const->{NAME}\t( $const->{VALUE} )\n";
+ } else {
+ $res .= "#define $const->{NAME}\t $const->{VALUE}\n";
+ }
}
#####################################################################