Added an include for <windows.h> to declare the InterlockedIncrement/Decrement APIs which are now used in the Win32 threadsafe ISupports implementation...

git-svn-id: svn://10.0.0.236/trunk@12034 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1998-10-06 06:17:25 +00:00
parent f0011a1546
commit 1a35e3c209
3 changed files with 14 additions and 2 deletions

View File

@@ -21,6 +21,10 @@
#include "nsILoadAttribs.h"
#include "prtypes.h"
#if defined(XP_PC)
#include <windows.h> // Needed for Interlocked APIs defined in nsISupports.h
#endif /* XP_PC */
// nsLoadAttribs definition.
class nsLoadAttribs : public nsILoadAttribs {

View File

@@ -20,6 +20,9 @@
#include "net.h"
#include "mktrace.h"
#if defined(XP_PC)
#include <windows.h> // Needed for Interlocked APIs defined in nsISupports.h
#endif /* XP_PC */
/* XXX: Declare NET_PollSockets(...) for the blocking stream hack... */
extern "C" {

View File

@@ -28,9 +28,14 @@
#include "plstr.h"
#include "prprf.h" /* PR_snprintf(...) */
#include "prmem.h" /* PR_Malloc(...) / PR_Free(...) */
#ifdef XP_MAC
#if defined(XP_MAC)
#include "xp_mcom.h" /* XP_STRDUP() */
#endif
#endif /* XP_MAC */
#if defined(XP_PC)
#include <windows.h> // Needed for Interlocked APIs defined in nsISupports.h
#endif /* XP_PC */
class URLImpl : public nsIURL {
public: