Conditionally compile PrefChangedFunc typedef (which temporarily needs to defined in two header files) so DEC compiler is happy

This commit is contained in:
hshaw%netscape.com 1999-01-28 03:51:22 +00:00
Родитель 5e22649201
Коммит 62bf81ce5a
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -23,7 +23,15 @@
#include "jsapi.h"
#include "nsISupports.h"
/* Temporarily conditionally compile PrefChangedFunc typedef.
** During migration from old libpref to nsIPref we need it in
** both header files. Eventually prefapi.h will become a private
** file. The two types need to be in sync for now. Certain
** compilers were having problems with multiple definitions.
*/
#ifndef PREFAPI_H
typedef int (*PrefChangedFunc) (const char *, void *);
#endif /* PREFAPI_H */
// {A22AD7B0-CA86-11d1-A9A4-00805F8A7AC4}
NS_DECLARE_ID(kIPrefIID,

Просмотреть файл

@ -412,7 +412,15 @@ PR_EXTERN(PrefResult) PREF_CopyPrefsTree(const char *srcRoot, const char *destRo
// Return a non-zero result (a PrefResult enumerated value) to pass an error up to the caller.
// </font>
*/
/* Temporarily conditionally compile PrefChangedFunc typedef.
** During migration from old libpref to nsIPref we need it in
** both header files. Eventually prefapi.h will become a private
** file. The two types need to be in sync for now. Certain
** compilers were having problems with multiple definitions.
*/
#ifndef nsIPref_h__
typedef int (*PrefChangedFunc) (const char *, void *);
#endif /* nsIPref_h__ */
/*
// <font color=blue>