Ken wrote:
>
> Hi, all. I am embedding Gecko and am adding logging to my object. One
> is supposed to be able to specify an environment variable
> NSPR_LOG_FILE with a value of WinDebug, so the output will go to the
> debug window (see
> http://lxr.mozilla.org/seamonkey/source/nsprpub/pr/include/prlog.h)
>
> But it is not working. Logging to a file works fine, but not the debug
> window. A seach for WinDebug reveals
> http://lxr.mozilla.org/seamonkey/source/nsprpub/pr/src/io/prlog.c#304
>
> It appears XP_PC is not defined in the standard makefile, and
> therefore this code is not included. Is that the problem? I am
> building with Win2k and VC++ 6.0 SP4
XP_PC is defined on the compiler command line (-DXP_PC)
when building NSPR. See mozilla/nsprpub/config/WIN32.mk.
Wan-Teh