Skip to content

Commit cd9cd3d

Browse files
committed
PHPC-285: VC14 needs timezone defined for SSL function
1 parent 321c577 commit cd9cd3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/contrib/php-ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
/* LCOV_EXCL_START */
3131
#include "php-ssl.h"
3232

33+
#if defined(NETWARE) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900)
34+
#define timezone _timezone /* timezone is called _timezone in LibC */
35+
#endif
36+
3337
int php_mongo_matches_wildcard_name(const char *subjectname, const char *certname) /* {{{ */
3438
{
3539
char *wildcard = NULL;

0 commit comments

Comments
 (0)