Closed Bug 206934 Opened 21 years ago Closed 21 years ago

Mozilla should use __declspec, not _declspec

Categories

(SeaMonkey :: Build Config, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.5alpha

People

(Reporter: netscape, Assigned: dmosedale)

References

Details

Attachments

(2 files)

MSVC will accept either __declspec or _declspec but gcc only accepts the former.
 Right now, NSPR defines _declspec for gcc builds but that will change when bug
202826 lands.
__declspec is the documented form, so it is also more correct
than _declspec.
Attachment #124120 - Flags: review?(wtc)
Comment on attachment 124120 [details] [diff] [review]
nss v1.0

r=wtc.	I'm wondering why this didn't break the Win32 mingw
build.
Attachment #124120 - Flags: review?(wtc) → review+
The use of _declspec didn't break the mingw builds because we added that
_declspec define to prtypes.h when the original mingw port was done.  The patch
in bug 202826 removes that define so all of the other places which used
_declspec must be changed.
Blocks: mingw
Attachment #124119 - Flags: review?(dougt)
Attachment #124119 - Flags: review?(dougt) → review+
The patches have been checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.5alpha
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: