зеркало из https://github.com/mozilla/gecko-dev.git
Bug 735191 - shared-libraries-win32.cc fails to crosscompile on case-sensitive OSes r=ehsan
This commit is contained in:
Родитель
d54cd7b4d7
Коммит
9a02c70f54
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include <tlhelp32.h>
|
||||
#include <Dbghelp.h>
|
||||
#include <dbghelp.h>
|
||||
|
||||
#include "shared-libraries.h"
|
||||
#include "nsWindowsHelpers.h"
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "nscore.h"
|
||||
#include "jsapi.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/Util.h"
|
||||
|
||||
using mozilla::TimeStamp;
|
||||
using mozilla::TimeDuration;
|
||||
|
@ -183,7 +184,7 @@ public:
|
|||
if (!aMarker) {
|
||||
return; //discard
|
||||
}
|
||||
if (mMarkerPointer == 1024) {
|
||||
if (mMarkerPointer == mozilla::ArrayLength(mMarkers)) {
|
||||
return; //array full, silently drop
|
||||
}
|
||||
mMarkers[mMarkerPointer] = aMarker;
|
||||
|
@ -212,7 +213,7 @@ public:
|
|||
|
||||
void push(const char *aName)
|
||||
{
|
||||
if (mStackPointer >= 1024) {
|
||||
if (mStackPointer >= mozilla::ArrayLength(mStack)) {
|
||||
mDroppedStackEntries++;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ extern "C" {
|
|||
__declspec(dllimport) void * __stdcall TlsGetValue(unsigned long);
|
||||
__declspec(dllimport) int __stdcall TlsSetValue(unsigned long, void *);
|
||||
__declspec(dllimport) unsigned long __stdcall TlsAlloc();
|
||||
};
|
||||
}
|
||||
#else
|
||||
# include <pthread.h>
|
||||
# include <signal.h>
|
||||
|
|
Загрузка…
Ссылка в новой задаче