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

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1801] Test #18 fails
https://bugs.exim.org/show_bug.cgi?id=1801

--- Comment #6 from Roy Ivy III <Roy.Ivy.III@???> ---
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.

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