aboutsummaryrefslogtreecommitdiffstats
path: root/ossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ossl.c')
-rw-r--r--ossl.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/ossl.c b/ossl.c
index 272e272..f8f12f5 100644
--- a/ossl.c
+++ b/ossl.c
@@ -10,15 +10,22 @@
*/
#include "ossl.h"
+#ifdef WIN32
+# define strncasecmp _strnicmp
+#endif
+
/*
* On Windows platform there is no strptime function
* implementation in strptime.c
*/
#ifndef HAVE_STRPTIME
-# ifndef HAVE_STRNCASECMP
-# include "./missing/strncasecmp.c"
-# endif
# include "./missing/strptime.c"
+/*
+#else
+# define _XOPEN_SOURCE * glibc2 needs this *
+# include <features.h>
+# include <time.h>
+ */
#endif
/*