[Poppler-bugs] [Bug 93116] New: Additional _MSVC version check needed in config.h because of snprintf

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 26 02:51:48 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=93116

            Bug ID: 93116
           Summary: Additional _MSVC version check needed in config.h
                    because of snprintf
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: j.rehborn at googlemail.com

Currently "config.h" looks like this.

/* MS has defined snprintf as deprecated */
#ifdef _MSC_VER
#define snprintf _snprintf
#endif

snprintf is now implemented by Microsoft with MSVC14/Win10SDK in "sdtio.h"
compiling fails because "stdio.h" contains a check if snprintf is defined
previous.

"config.h" should look like.

 /* MS has defined snprintf as deprecated, but MSVC14/Win10SDK implements it
again. */
#ifdef _MSC_VER && _MSC_VER <= 1800
#define snprintf _snprintf
#endif

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20151126/3bef1575/attachment.html>


More information about the Poppler-bugs mailing list