Closed Bug 94373 Opened 23 years ago Closed 23 years ago

Name conflict: PrefChangedCallback exists in both layout, and mac gfx, will break Mac static build

Categories

(Core :: Layout, defect)

PowerPC
Mac System 8.5
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

References

Details

Attachments

(2 files)

A routine called 'PrefChangedCallback' is used in several places to implement 
preference callbacks:

http://lxr.mozilla.org/seamonkey/search?string=PrefChangedCallback.

In the Mac static build, we pick up those in

/gfx/src/mac/nsUnicodeMappingUtil.cpp

and

/layout/base/src/nsPresContext.cpp

with the result that the static build will behave incorrectly (since the linker 
will strip out one of those implementatoins).

I suggest that both are renamed to be unique.
Blocks: 81373
cc: harishd for P3P use of PrefChangedCallbac, and neeti for PICS usage.
Could I get some review loving here?
[s]r=attinasi for patches to make the callback methods static data members.
I'll take this. ftang: r= on attachment 45129 [details] [diff] [review] please.
Assignee: karnaze → sfraser
r/sr=blake
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Since I 'm not exactly sure how to test this, I'm marking verified based on the
last comments.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: