Index: Source/bindings/scripts/CodeGeneratorV8.pm |
diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm |
index 3d903081b7da5b91443bab9bc566e5101a03d707..762f421b0548c69c526e875629f44c87865fcea7 100644 |
--- a/Source/bindings/scripts/CodeGeneratorV8.pm |
+++ b/Source/bindings/scripts/CodeGeneratorV8.pm |
@@ -4036,14 +4036,12 @@ sub GenerateHeaderContentHeader |
sub GenerateImplementationContentHeader |
{ |
my $interface = shift; |
- my $v8InterfaceName = "V8" . $interface->name; |
my $conditionalString = GenerateConditionalString($interface); |
my @implContentHeader = split("\r", $headerTemplate); |
push(@implContentHeader, "\n#include \"config.h\"\n"); |
push(@implContentHeader, "#if ${conditionalString}\n") if $conditionalString; |
- push(@implContentHeader, "#include \"${v8InterfaceName}.h\"\n\n"); |
return @implContentHeader; |
} |
@@ -5099,9 +5097,11 @@ sub WriteData |
UpdateFile($implFileName, $implementation{root}->toString()); |
} else { |
my $contents = join "", @implContentHeader; |
+ my $mainInclude = "\"V8$name.h\""; |
+ $contents .= "#include $mainInclude\n\n"; |
foreach my $include (sort @includes) { |
- $contents .= "#include $include\n"; |
+ $contents .= "#include $include\n" unless $include eq $mainInclude; |
} |
foreach my $condition (sort keys %implIncludeConditions) { |
$contents .= "\n#if " . GenerateConditionalStringFromAttributeValue($condition) . "\n"; |