Closed Bug 1120772 Opened 9 years ago Closed 9 years ago

NSPR's definition of snprintf breaks build when MSVC 2015 is used

Categories

(NSPR :: NSPR, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
4.10.8

People

(Reporter: briansmith, Assigned: briansmith)

Details

Attachments

(1 file)

MSVC 2015 finally added snprintf. MSVC 2015's stdio.h contains this:

#ifdef vsnprintf
    #error Macro definition of vsnprintf conflicts with Standard Library function declaration
#endif
#ifdef snprintf
    #error Macro definition of snprintf conflicts with Standard Library function declaration
#endif

This means we must be careful to never define snprintf or vsnprintf as macros when building with MSVC 2015.
Target Milestone: --- → 4.10.8
http://hg.mozilla.org/projects/nspr/rev/e27c8f0bdd5d

Also tagged this NSPR_4_10_8_BETA3 so that I can land it in mozilla-inbound:

http://hg.mozilla.org/projects/nspr/rev/ab846cd2b379
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Attachment #8547925 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: