aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-11-03 10:33:10 +0000
committerWerner Koch <[email protected]>2010-11-03 10:33:10 +0000
commit83d88d444eef15e128dd4080d6b1978b4d8657c2 (patch)
tree3dd805f4b85a230cb4ed86d79625b43f99a47a42 /src/debug.c
parentMore include guards. (diff)
downloadgpgme-83d88d444eef15e128dd4080d6b1978b4d8657c2.tar.gz
gpgme-83d88d444eef15e128dd4080d6b1978b4d8657c2.zip
Hopefully last changes for building with MSC.
Diffstat (limited to '')
-rw-r--r--src/debug.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index 1d9a40eb..34c5d18f 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -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
{