Index: Source/bindings/scripts/IDLParser.pm |
diff --git a/Source/bindings/scripts/IDLParser.pm b/Source/bindings/scripts/IDLParser.pm |
index 3eb4d2221f19fdee3c46371b24d241cc65fd2049..177f3e919b1d9c2be73f0bd92942f328ad1bf95c 100644 |
--- a/Source/bindings/scripts/IDLParser.pm |
+++ b/Source/bindings/scripts/IDLParser.pm |
@@ -833,7 +833,7 @@ sub parseTypedef |
$self->assertTokenType($nameToken, IdentifierToken); |
$self->assertTokenValue($self->getToken(), ";", __LINE__); |
my $name = $nameToken->value(); |
- die "typedef redefinition for " . $name . " at " . $self->{Line} if exists $typedefs{$name}; |
+ die "typedef redefinition for " . $name . " at " . $self->{Line} if (exists $typedefs{$name} && $typedef->type ne $typedefs{$name}->type); |
$typedefs{$name} = $typedef; |
return; |
} |