Closed Bug 437922 Opened 16 years ago Closed 15 years ago

build error in prmjtime.cpp with mingw

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: Mook, Assigned: Mook)

References

()

Details

Attachments

(1 file, 2 obsolete files)

Attached patch use PR_MAX (obsolete) — Splinter Review
See URL.

max() isn't defined in mingw/w32api in C++ (it has an explicit #ifndef __cplusplus), presumably because the macro would screw with things like numeric_limits::max().  PR_MAX should be used here instead.
Attachment #324246 - Flags: review?(mrbkap)
Comment on attachment 324246 [details] [diff] [review]
use PR_MAX

r-: need to use JS_MAX, though I wonder why mingw has that rule for max and other environments seem not to?
Attachment #324246 - Flags: review?(mrbkap) → review-
Attached patch use JS_MAX (obsolete) — Splinter Review
thanks for catching my idiocy, shaver :)  let's try these other two characters instead... (still builds)
Attachment #324246 - Attachment is obsolete: true
Attachment #324408 - Flags: review?(shaver)
... maybe I should try again?  Nothing's materially changed in the patch.
Attachment #324408 - Attachment is obsolete: true
Attachment #363523 - Flags: review?(mrbkap)
Attachment #324408 - Flags: review?(shaver)
Attachment #363523 - Flags: review?(mrbkap) → review+
Keywords: checkin-needed
Comment on attachment 363523 [details] [diff] [review]
refresh patch to m-c head
[Checkin: Comment 4]


http://hg.mozilla.org/mozilla-central/rev/6410c3cdd64f
Attachment #363523 - Attachment description: refresh patch to m-c head → refresh patch to m-c head [Checkin: Comment 4]
Assignee: general → mook.moz+mozbz
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Flags: in-testsuite-
Serge is my hero! Thanks for the -.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: