Closed Bug 570332 Opened 15 years ago Closed 15 years ago

nspr doesn't compile on mingw-w64

Categories

(NSPR :: NSPR, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jacek, Assigned: jacek)

References

Details

Attachments

(1 file)

Attached patch fix v1.0Splinter Review
There are two problems with nspr on mingw for win64. The first is use of not portable __int64 in prtypes.h. The attached patch reuses previously typedefed PRInt64/PRUint64 instead of __int64. The other problem is in w96thread.c, where #if _MSC_VER <= 1200 guard is used that doesn't check if _MSC_VER is defined, so it tries to typedef DWORD_PTR to DWORD when _MSC_VER is not defined (and it's not defined on GCC). The attached patch fixes it.
Attachment #449465 - Attachment is patch: true
Attachment #449465 - Flags: review?(ted.mielczarek)
Assignee: wtc → jacek
Blocks: 570342
Comment on attachment 449465 [details] [diff] [review] fix v1.0 r=wtc. Thanks for the patch. I assume 'long' is still 32 bits on mingw-w64?
Attachment #449465 - Flags: review?(ted.mielczarek) → review+
I checked in the patch on the NSPR trunk (NSPR 4.8.5). Checking in pr/include/prtypes.h; /cvsroot/mozilla/nsprpub/pr/include/prtypes.h,v <-- prtypes.h new revision: 3.43; previous revision: 3.42 done Checking in pr/src/md/windows/w95thred.c; /cvsroot/mozilla/nsprpub/pr/src/md/windows/w95thred.c,v <-- w95thred.c new revision: 3.19; previous revision: 3.18 done
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.8.5
(In reply to comment #1) > (From update of attachment 449465 [details] [diff] [review]) > r=wtc. Thanks for the patch. > > I assume 'long' is still 32 bits on mingw-w64? Yes, it is. Thanks for review and check in.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: