[pcre-dev] [Bug 594] New: pcrecpp unittest 'snprintf' missin…

Startseite
Nachricht löschen
Autor: Drew
Datum:  
To: pcre-dev
Neue Treads: [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows, [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows, [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows, [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows, [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows, [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows, [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows
Betreff: [pcre-dev] [Bug 594] New: pcrecpp unittest 'snprintf' missing on windows
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=594
           Summary: pcrecpp unittest 'snprintf' missing on windows
           Product: PCRE
           Version: 7.2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: low
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: morfrog@???
                CC: pcre-dev@???



When compiling in visual studio 2005 on windows, pcrecpp_unittest.cc uses
snprintf only within HAVE_UNSIGNED_LONG_LONG and HAVE_LONG_LONG code. On this
compiler this function doesn't exist, instead the function is prepended with an
underscore: _snprintf .

The following code segment fixes the problem, though perhaps it should be more
restrictive:

#ifdef HAVE_WINDOWS_H
#define snprintf _snprintf
#endif

Note I am using version 7.3, which doesn't appear in the version list above.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email