From 08b5266a5cca2dba9db5241e8b4334f2fa05b877 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Fri, 4 Mar 2022 10:42:13 +0800 Subject: [PATCH] kplugins: fix build (as of nm27 rev a9171b7b) --- k-meleon/kplugins/adblock/adblock.cpp | 11 +++++++++++ k-meleon/kplugins/fullscreen/fullscreen.cpp | 14 ++++++++++++++ k-meleon/kplugins/gestures/gestures.cpp | 13 +++++++++++++ k-meleon/kplugins/login/login.cpp | 15 ++++++++++++++- k-meleon/kplugins/privacy/privacy.cpp | 14 ++++++++++++++ 5 files changed, 66 insertions(+), 1 deletion(-) diff --git a/k-meleon/kplugins/adblock/adblock.cpp b/k-meleon/kplugins/adblock/adblock.cpp index c7ab75f8..8a91c7ae 100644 --- a/k-meleon/kplugins/adblock/adblock.cpp +++ b/k-meleon/kplugins/adblock/adblock.cpp @@ -54,6 +54,7 @@ #include "nsIThreadManager.h" #include "nsIThread.h" +#include "mozilla/ChaosMode.h" // ChaosMode hack #define KMELEON_PLUGIN_EXPORTS @@ -1234,3 +1235,13 @@ KMELEON_PLUGIN kmeleonPlugin *GetKmeleonPlugin() { } +#if 1 //ChaosMode hack +namespace mozilla { + namespace detail { + + Atomic gChaosModeCounter(0); + ChaosFeature gChaosFeatures = None; + + } /* namespace detail */ +} /* namespace mozilla */ +#endif diff --git a/k-meleon/kplugins/fullscreen/fullscreen.cpp b/k-meleon/kplugins/fullscreen/fullscreen.cpp index ef644872..abec46a5 100644 --- a/k-meleon/kplugins/fullscreen/fullscreen.cpp +++ b/k-meleon/kplugins/fullscreen/fullscreen.cpp @@ -38,6 +38,9 @@ #include "kmeleon_plugin.h" #include "LocalesUtils.h" #include "mozilla.h" + +#include "mozilla/ChaosMode.h" // ChaosMode hack + Locale* gLoc; int Load(); @@ -471,3 +474,14 @@ KMELEON_PLUGIN kmeleonPlugin *GetKmeleonPlugin() { //} } + +#if 1 //ChaosMode hack +namespace mozilla { + namespace detail { + + Atomic gChaosModeCounter(0); + ChaosFeature gChaosFeatures = None; + + } /* namespace detail */ +} /* namespace mozilla */ +#endif diff --git a/k-meleon/kplugins/gestures/gestures.cpp b/k-meleon/kplugins/gestures/gestures.cpp index d9919a2a..71f8b7af 100644 --- a/k-meleon/kplugins/gestures/gestures.cpp +++ b/k-meleon/kplugins/gestures/gestures.cpp @@ -38,6 +38,8 @@ #include "strconv.h" #include "mozilla.h" +#include "mozilla/ChaosMode.h" // ChaosMode hack + BOOL APIENTRY DllMain ( HANDLE hModule, DWORD ul_reason_for_call, @@ -530,3 +532,14 @@ extern "C" { return &kPlugin; } } + +#if 1 //ChaosMode hack +namespace mozilla { + namespace detail { + + Atomic gChaosModeCounter(0); + ChaosFeature gChaosFeatures = None; + + } /* namespace detail */ +} /* namespace mozilla */ +#endif diff --git a/k-meleon/kplugins/login/login.cpp b/k-meleon/kplugins/login/login.cpp index a5fe4877..672fe61b 100644 --- a/k-meleon/kplugins/login/login.cpp +++ b/k-meleon/kplugins/login/login.cpp @@ -34,6 +34,8 @@ #include "mozilla.h" #include "resource.h" +#include "mozilla/ChaosMode.h" // ChaosMode hack + #define PLUGIN_NAME "Login Manager" #define SIDEBARPROPNAME _T("LoginManagerData") @@ -197,4 +199,15 @@ extern "C" { KMELEON_PLUGIN kmeleonPlugin *GetKmeleonPlugin() { return &kPlugin; } -} \ No newline at end of file +} + +#if 1 //ChaosMode hack +namespace mozilla { + namespace detail { + + Atomic gChaosModeCounter(0); + ChaosFeature gChaosFeatures = None; + + } /* namespace detail */ +} /* namespace mozilla */ +#endif diff --git a/k-meleon/kplugins/privacy/privacy.cpp b/k-meleon/kplugins/privacy/privacy.cpp index 650c9187..7eeada7f 100644 --- a/k-meleon/kplugins/privacy/privacy.cpp +++ b/k-meleon/kplugins/privacy/privacy.cpp @@ -31,6 +31,9 @@ #include "kmeleon_plugin.h" #include "Utils.h" #include "LocalesUtils.h" + +#include "mozilla/ChaosMode.h" // ChaosMode hack + Locale* gLoc = NULL; #define PLUGIN_NAME "Privacy Plugin" @@ -608,3 +611,14 @@ extern "C" return 14; // 14 = icon width } } + +#if 1 //ChaosMode hack +namespace mozilla { + namespace detail { + + Atomic gChaosModeCounter(0); + ChaosFeature gChaosFeatures = None; + + } /* namespace detail */ +} /* namespace mozilla */ +#endif