summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-14 17:57:32 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-14 17:57:32 +0200
commit4aa690c2e4ede777ac67e5eae657ad037507412e (patch)
treef03eb668f818d876ff7587c893734b06de34430e /basic
parent96084f9426f0184be722da800797df37f008dc9b (diff)
basic: use prewin.h
Change-Id: I49b797b170b3fd74324eede9d3b6b6ec106e62e4
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx17
1 files changed, 3 insertions, 14 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 881c097e1967..1dfeb8f2406a 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -84,24 +84,13 @@ using namespace com::sun::star::uno;
SbxVariable* getDefaultProp( SbxVariable* pRef );
-#if defined (WNT)
-#include <direct.h>
-#endif
-
#include "sbobjmod.hxx"
#ifdef WNT
-#if defined _MSC_VER
-#pragma warning (push, 1)
-#pragma warning (disable: 4005)
-#endif
-#include <windows.h>
-#if defined _MSC_VER
-#pragma warning (pop)
-#endif
+#include <prewin.h>
+#include <direct.h>
#include <io.h>
-#undef GetObject
-#undef GradientSyle_RECT
+#include <postwin.h>
#endif
#ifndef DISABLE_SCRIPTING