summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-01-24 17:37:04 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-01-24 17:39:05 +0200
commitbf4aaa1112243a29c705568b40832d8cc8683352 (patch)
treedb51cdb538015845f29cf909061abdd903bbb269 /extensions/source
parent846e7803db529d462a4f5a0480e1b502ca05c6c9 (diff)
Fix fallout of WIN_ULONG change in pre/postsys.h
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/ole/jscriptclasses.hxx3
-rw-r--r--extensions/source/ole/makefile.mk2
-rw-r--r--extensions/source/ole/servprov.cxx12
-rw-r--r--extensions/source/ole/servprov.hxx11
-rw-r--r--extensions/source/ole/unoobjw.cxx6
-rw-r--r--extensions/source/ole/unoobjw.hxx9
-rw-r--r--extensions/source/ole/unotypewrapper.hxx4
7 files changed, 21 insertions, 26 deletions
diff --git a/extensions/source/ole/jscriptclasses.hxx b/extensions/source/ole/jscriptclasses.hxx
index b881e94419dd..77ad5d3e5799 100644
--- a/extensions/source/ole/jscriptclasses.hxx
+++ b/extensions/source/ole/jscriptclasses.hxx
@@ -42,7 +42,6 @@
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
-#include <tools/postsys.h>
#pragma warning (pop)
#pragma warning (disable:4505)
@@ -158,6 +157,8 @@ private:
CComVariant m_varValue;
};
+#include <tools/postsys.h>
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/ole/makefile.mk b/extensions/source/ole/makefile.mk
index e20e83e0f1e7..87841c463f43 100644
--- a/extensions/source/ole/makefile.mk
+++ b/extensions/source/ole/makefile.mk
@@ -121,7 +121,7 @@ SHL2OBJS=$(REAL_OWNGUID_SLOFILES)
DEF2NAME=$(SHL2TARGET)
DEF2EXPORTFILE=$(TARGET).dxp
-.ENDIF
+.ENDIF # "$(GUI)" == "WNT" && "$(DISABLE_ATL)"==""
#----------------------------------------------------------------
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx
index 82c5170a075a..4eed6c7be1ca 100644
--- a/extensions/source/ole/servprov.cxx
+++ b/extensions/source/ole/servprov.cxx
@@ -154,15 +154,15 @@ STDMETHODIMP ProviderOleWrapper_Impl::QueryInterface(REFIID riid, void FAR* FAR*
return ResultFromScode(E_NOINTERFACE);
}
-STDMETHODIMP_(ULONG) ProviderOleWrapper_Impl::AddRef()
+STDMETHODIMP_(WIN_ULONG) ProviderOleWrapper_Impl::AddRef()
{
return osl_incrementInterlockedCount( &m_refCount);
}
-STDMETHODIMP_(ULONG) ProviderOleWrapper_Impl::Release()
+STDMETHODIMP_(WIN_ULONG) ProviderOleWrapper_Impl::Release()
{
MutexGuard aGuard( Mutex::getGlobalMutex());
- ULONG refCount = --m_refCount;
+ WIN_ULONG refCount = --m_refCount;
if (m_refCount == 0)
{
delete this;
@@ -300,15 +300,15 @@ STDMETHODIMP OneInstanceOleWrapper_Impl::QueryInterface(REFIID riid, void FAR* F
return ResultFromScode(E_NOINTERFACE);
}
-STDMETHODIMP_(ULONG) OneInstanceOleWrapper_Impl::AddRef()
+STDMETHODIMP_(WIN_ULONG) OneInstanceOleWrapper_Impl::AddRef()
{
return osl_incrementInterlockedCount( &m_refCount);
}
-STDMETHODIMP_(ULONG) OneInstanceOleWrapper_Impl::Release()
+STDMETHODIMP_(WIN_ULONG) OneInstanceOleWrapper_Impl::Release()
{
MutexGuard oGuard( Mutex::getGlobalMutex());
- ULONG refCount = --m_refCount;
+ WIN_ULONG refCount = --m_refCount;
if ( m_refCount == 0)
{
delete this;
diff --git a/extensions/source/ole/servprov.hxx b/extensions/source/ole/servprov.hxx
index d9c47cdbd7eb..b353f33bf81d 100644
--- a/extensions/source/ole/servprov.hxx
+++ b/extensions/source/ole/servprov.hxx
@@ -35,7 +35,6 @@
#include "ole2uno.hxx"
#include "unoconversionutilities.hxx"
-
using namespace com::sun::star::bridge;
using namespace cppu;
using namespace std;
@@ -97,8 +96,8 @@ public:
/* IUnknown methods */
STDMETHOD(QueryInterface)(REFIID riid, LPVOID FAR * ppvObj);
- STDMETHOD_(ULONG, AddRef)();
- STDMETHOD_(ULONG, Release)();
+ STDMETHOD_(WIN_ULONG, AddRef)();
+ STDMETHOD_(WIN_ULONG, Release)();
/* IClassFactory methods */
STDMETHOD(CreateInstance)(IUnknown FAR* punkOuter, REFIID riid, void FAR* FAR* ppv);
@@ -139,8 +138,8 @@ public:
/* IUnknown methods */
STDMETHOD(QueryInterface)(REFIID riid, LPVOID FAR * ppvObj);
- STDMETHOD_(ULONG, AddRef)();
- STDMETHOD_(ULONG, Release)();
+ STDMETHOD_(WIN_ULONG, AddRef)();
+ STDMETHOD_(WIN_ULONG, Release)();
/* IClassFactory methods */
STDMETHOD(CreateInstance)(IUnknown FAR* punkOuter, REFIID riid, void FAR* FAR* ppv);
@@ -274,6 +273,4 @@ protected:
} // end namespace
#endif
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index 99dedf5467ac..744e756ed4e2 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -157,7 +157,7 @@ STDMETHODIMP InterfaceOleWrapper_Impl::QueryInterface(REFIID riid, LPVOID FAR *
return ret;
}
-STDMETHODIMP_(ULONG) InterfaceOleWrapper_Impl::AddRef()
+STDMETHODIMP_(WIN_ULONG) InterfaceOleWrapper_Impl::AddRef()
{
acquire();
// does not need to guard because one should not rely on the return value of
@@ -165,9 +165,9 @@ STDMETHODIMP_(ULONG) InterfaceOleWrapper_Impl::AddRef()
return m_refCount;
}
-STDMETHODIMP_(ULONG) InterfaceOleWrapper_Impl::Release()
+STDMETHODIMP_(WIN_ULONG) InterfaceOleWrapper_Impl::Release()
{
- ULONG n= m_refCount;
+ WIN_ULONG n= m_refCount;
release();
return n - 1;
}
diff --git a/extensions/source/ole/unoobjw.hxx b/extensions/source/ole/unoobjw.hxx
index e57421fc9286..6bbf95ebdbb6 100644
--- a/extensions/source/ole/unoobjw.hxx
+++ b/extensions/source/ole/unoobjw.hxx
@@ -35,10 +35,7 @@
#include <com/sun/star/script/InvocationInfo.hpp>
#include <salhelper/simplereferenceobject.hxx>
-#include <tools/presys.h>
#include "comifaces.hxx"
-#include <tools/postsys.h>
-
#include "ole2uno.hxx"
#include "unoconversionutilities.hxx"
@@ -130,8 +127,8 @@ public:
/* IUnknown methods */
STDMETHOD(QueryInterface)(REFIID riid, LPVOID FAR * ppvObj);
- STDMETHOD_(ULONG, AddRef)();
- STDMETHOD_(ULONG, Release)();
+ STDMETHOD_(WIN_ULONG, AddRef)();
+ STDMETHOD_(WIN_ULONG, Release)();
/* IDispatch methods */
STDMETHOD( GetTypeInfoCount )( unsigned int * pctinfo );
@@ -293,8 +290,6 @@ protected:
};
-
-
} // end namespace
#endif
diff --git a/extensions/source/ole/unotypewrapper.hxx b/extensions/source/ole/unotypewrapper.hxx
index f2433befa6e1..d6111368ca47 100644
--- a/extensions/source/ole/unotypewrapper.hxx
+++ b/extensions/source/ole/unotypewrapper.hxx
@@ -41,7 +41,6 @@
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
-#include <tools/postsys.h>
#pragma warning (pop)
#pragma warning (disable:4505)
@@ -98,6 +97,9 @@ public:
CComBSTR m_sName;
};
+// This here so that WIN_ULONG is used also in the magic macros above
+#include <tools/postsys.h>
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */