[Webkit-unassigned] [Bug 43866] New: The #if clause enabling a feature should avoid the all includes of the feature
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 11 12:21:54 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43866
Summary: The #if clause enabling a feature should avoid the all
includes of the feature
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: XML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: alex at igalia.com
In this moment we are generating code like this:
...
#include "config.h"
#include "MathMLElementFactory.h"
#include "MathMLNames.h"
#if ENABLE(MATHML)
#include "MathMLMathElement.h"
#include "MathMLInlineContainerElement.h"
#include "MathMLTextElement.h"
#include "MathMLElement.h"
#include <wtf/HashMap.h>
...
This causes problems when you disable a feature because the includes add the symbols from the .h which are going to be undefined when you try to link the library, in gtk it fails linking our unit tests. To solve this issue we could generate something like this:
...
#include "config.h"
#if ENABLE(MATHML)
#include "MathMLElementFactory.h"
#include "MathMLNames.h"
#include "MathMLMathElement.h"
#include "MathMLInlineContainerElement.h"
#include "MathMLTextElement.h"
#include "MathMLElement.h"
#include <wtf/HashMap.h>
...
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list