ugh, fix for the windows bustage. this fix sucks. windows.h sucks.

This commit is contained in:
pavlov%netscape.com 2000-09-01 10:34:05 +00:00
parent 0b12927e7d
commit e74258e943

View File

@ -49,6 +49,19 @@
#include "nsEscape.h"
#include "nsIPSMSocketInfo.h"
/* sigh, cmtcmn.h, included from nsIPSMSocketInfo.h, includes windows.h, which includes winuser.h,
which defines PostMessage to be either PostMessageA or PostMessageW... of course it does this
without using parameters, so any use of PostMessage now becomes PostMessageA...
since this file is XP and doesn't need windows.h, i'm going to just undef this out for now
when someone comes up with a better solution, please let me know.
Stuart Parmenter <pavlov@netscape.com>
*/
#ifdef PostMessage
#undef PostMessage
#endif
#ifndef XP_UNIX
#include <stdarg.h>