[pcre-dev] [Bug 1801] Test #18 fails

Page principale
Supprimer ce message
Auteur: admin
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 1801] Test #18 fails
https://bugs.exim.org/show_bug.cgi?id=1801

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED


--- Comment #8 from Philip Hazel <ph10@???> ---
(In reply to Roy Ivy III from comment #6)
> I wanted to add that using "snprintf()" blocks compilation for MSVC
> compilers older than MSVC 14/2015 (cl 19.00). If you add:
>
> ```
> #if defined(_MSC_VER) && (_MSC_VER < 1900)
> #define snprintf _snprintf
> #endif
> ```
>
> to either "pcre2posix.c", "pcre2posix.h", or "pcre2_internal.h", whichever
> seems appropriate, it allows for warning/error-free compilation and testing
> with MSVC compilers back to at least MSVC 10/2010. Except for VC6 (which is
> missing some fundamentals and fails), that's as far back as I've tested.


OK, I've added this to pcre2_internal.h so that it will apply to any future
uses of snprintf(). Seems like I was right to stick to C90 for so long - I only
started to use C99 features when developing PCRE2.

--
You are receiving this mail because:
You are on the CC list for the bug.