Browse Source

kplugins: fix build (as of nm27 rev a9171b7b)

master
roytam1 4 months ago
parent
commit
08b5266a5c
  1. 11
      k-meleon/kplugins/adblock/adblock.cpp
  2. 14
      k-meleon/kplugins/fullscreen/fullscreen.cpp
  3. 13
      k-meleon/kplugins/gestures/gestures.cpp
  4. 15
      k-meleon/kplugins/login/login.cpp
  5. 14
      k-meleon/kplugins/privacy/privacy.cpp

11
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<uint32_t> gChaosModeCounter(0);
ChaosFeature gChaosFeatures = None;
} /* namespace detail */
} /* namespace mozilla */
#endif

14
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<uint32_t> gChaosModeCounter(0);
ChaosFeature gChaosFeatures = None;
} /* namespace detail */
} /* namespace mozilla */
#endif

13
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<uint32_t> gChaosModeCounter(0);
ChaosFeature gChaosFeatures = None;
} /* namespace detail */
} /* namespace mozilla */
#endif

15
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;
}
}
}
#if 1 //ChaosMode hack
namespace mozilla {
namespace detail {
Atomic<uint32_t> gChaosModeCounter(0);
ChaosFeature gChaosFeatures = None;
} /* namespace detail */
} /* namespace mozilla */
#endif

14
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<uint32_t> gChaosModeCounter(0);
ChaosFeature gChaosFeatures = None;
} /* namespace detail */
} /* namespace mozilla */
#endif

Loading…
Cancel
Save