summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/source/plugin/inc/plugin/win/sysplug.hxx8
-rw-r--r--extensions/source/plugin/win/sysplug.cxx4
-rw-r--r--extensions/source/plugin/win/winmgr.cxx4
3 files changed, 16 insertions, 0 deletions
diff --git a/extensions/source/plugin/inc/plugin/win/sysplug.hxx b/extensions/source/plugin/inc/plugin/win/sysplug.hxx
index 0bc91bcb6174..8f4823b35739 100644
--- a/extensions/source/plugin/inc/plugin/win/sysplug.hxx
+++ b/extensions/source/plugin/inc/plugin/win/sysplug.hxx
@@ -29,17 +29,25 @@
#ifndef __PLUGIN_INC_WINPLUG_HXX
#define __PLUGIN_INC_WINPLUG_HXX
+#if defined _MSC_VER
#pragma warning (push,1)
#pragma warning (disable:4005)
+#endif
#include <tchar.h>
+#if defined _MSC_VER
#pragma pack( push, 8 )
+#endif
#include "npapi.h"
#include <npsdk/npupp.h>
+#if defined _MSC_VER
#pragma pack( pop )
+#endif
+#if defined _MSC_VER
#pragma warning (pop)
+#endif
#include <list>
#include <map>
diff --git a/extensions/source/plugin/win/sysplug.cxx b/extensions/source/plugin/win/sysplug.cxx
index 41c1539a986d..b75eafa63a84 100644
--- a/extensions/source/plugin/win/sysplug.cxx
+++ b/extensions/source/plugin/win/sysplug.cxx
@@ -33,14 +33,18 @@
#include <plugin/impl.hxx>
+#if defined _MSC_VER
#pragma warning (push,1)
#pragma warning (disable:4005)
+#endif
#include <string.h>
#include <tchar.h>
#include <objbase.h>
+#if defined _MSC_VER
#pragma warning (pop)
+#endif
#include <list>
#include <map>
diff --git a/extensions/source/plugin/win/winmgr.cxx b/extensions/source/plugin/win/winmgr.cxx
index 237ce4309880..b6b6951e1a06 100644
--- a/extensions/source/plugin/win/winmgr.cxx
+++ b/extensions/source/plugin/win/winmgr.cxx
@@ -41,14 +41,18 @@
#include "plugin/impl.hxx"
+#if defined _MSC_VER
#pragma warning (push,1)
#pragma warning (disable:4005)
+#endif
#include <string.h>
#include <tchar.h>
#include <objbase.h>
+#if defined _MSC_VER
#pragma warning (pop)
+#endif
#include <list>
#include <map>