Bug 735191 - shared-libraries-win32.cc fails to crosscompile on case-sensitive OSes r=ehsan

This commit is contained in:
Jacek Caban 2012-03-15 13:44:02 +01:00
parent e125125c10
commit bfee89c51b
3 changed files with 5 additions and 4 deletions

View File

@ -39,7 +39,7 @@
#include <windows.h>
#include <tlhelp32.h>
#include <Dbghelp.h>
#include <dbghelp.h>
#include "shared-libraries.h"
#include "nsWindowsHelpers.h"

View File

@ -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;
}

View File

@ -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>