Closed Bug 1210 Opened 26 years ago Closed 26 years ago

Fix to avoid multiple declaration of PrefChangedFunc

Categories

(Core Graveyard :: Plug-ins, defect, P2)

Sun
Solaris
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tor, Assigned: aoki)

Details

This small patch prevents the compiler from seeing two declarations of PrefChangedFunc (nsIPref.h and prefapi.h). Patch is relative to the nglayout branch of libpref on 10/30. --- nsIPref.h-orig Fri Oct 30 13:53:54 1998 +++ nsIPref.h Fri Oct 30 13:54:13 1998 @@ -22,8 +22,7 @@ #include "xp_core.h" #include "jsapi.h" #include "nsISupports.h" - -typedef int (*PrefChangedFunc) (const char *, void *); +#include "prefapi.h" // {A22AD7B0-CA86-11d1-A9A4-00805F8A7AC4} NS_DECLARE_ID(kIPrefIID,
Status: NEW → ASSIGNED
Component: Preferences → Plug-ins
Product: Mozilla → NGLayout
Change checked in by hshaw.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
QA Contact: 1698
[pinged hshaw to verify that it's okay to mark this as verified.
Status: RESOLVED → VERIFIED
I checked in some conditional preprocessing to make sure prefchangedfunc only gets defined once. This should be temporary until we wean people off of using prefapi.h. The reason prefapi.h was not just included from nsIPref.h is because the former is in the process of becoming a private header file and in the future won't be included by any consumers of the API.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.