Integer type name change.
[silc.git] / lib / silcutil / win32 / silcwin32util.c
index afe441ffe9fce4ab6580b5ee6e818d58b4b71489..d7051c384abcd5424d3d77e54fa9300c7b5e7a4e 100644 (file)
 
 #include "silcincludes.h"
 
+/* XXX GNU regex may work on Win32 too!! */
+char *silc_string_regexify(const char *string)
+{
+  return strdup(string);
+}
+
+char *silc_string_regex_combine(const char *string1, const char *string2)
+{
+  return strdup(string1);
+}
+
+int silc_string_regex_match(const char *regex, const char *string)
+{
+  return TRUE;
+}
+
+int silc_string_match(const char *string1, const char *string2)
+{
+  return TRUE;
+}
+
 #define FILETIME_1970 0x019db1ded53e8000
 const BYTE DWLEN = sizeof(DWORD) * 8;
 
@@ -30,10 +51,10 @@ const BYTE DWLEN = sizeof(DWORD) * 8;
 int silc_gettimeofday(struct timeval *tv)
 {
   FILETIME ft;
-  __int64 msec;
+  __SilcInt64 msec;
   
   GetSystemTimeAsFileTime(&ft);
-  msec = (__int64) ft.dwHighDateTime << DWLEN | ft.dwLowDateTime;
+  msec = (__SilcInt64) ft.dwHighDateTime << DWLEN | ft.dwLowDateTime;
   msec = (msec - FILETIME_1970) / 10;
   tv->tv_sec  = (long) (msec / 1000000);
   tv->tv_usec = (long) (msec % 1000000);