Hopefully last changes for building with MSC.
[gpgme.git] / src / debug.c
index 1d9a40eb08f884d64496e28da3ddecbcdb5494a6..34c5d18f54cf6da0638e514c1cfa9778ba6c998c 100644 (file)
@@ -209,6 +209,15 @@ _gpgme_debug (int level, const char *format, ...)
   va_start (arg_ptr, format);
   LOCK (debug_lock);
   {
+#ifdef HAVE_W32CE_SYSTEM
+    SYSTEMTIME t;
+
+    GetLocalTime (&t);
+    fprintf (errfp, "GPGME %04d-%02d-%02d %02d:%02d:%02d <0x%04llx>  ",
+            t.wYear, t.wMonth, t.wDay,
+            t.wHour, t.wMinute, t.wSecond,
+            (unsigned long long) ath_self ());
+#else
     struct tm *tp;
     time_t atime = time (NULL);
     
@@ -217,6 +226,7 @@ _gpgme_debug (int level, const char *format, ...)
             1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday,
             tp->tm_hour, tp->tm_min, tp->tm_sec,
             (unsigned long long) ath_self ());
+#endif
   }
 #ifdef FRAME_NR
   {