2010-05-11 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Tue, 11 May 2010 17:01:40 +0000 (17:01 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 11 May 2010 17:01:40 +0000 (17:01 +0000)
* gpgme.h.in: Use _WIN32 instead of _MSC_VER.  Include time.h for
time_t.

src/ChangeLog
src/gpgme.h.in

index 4f1ca96e688eb8cd8d4f44eed7ad74e9655ebb89..f9220bb8b1c57a863c13aa8dd4ca5450213e9f52 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-11  Marcus Brinkmann  <marcus@g10code.de>
+
+       * gpgme.h.in: Use _WIN32 instead of _MSC_VER.  Include time.h for
+       time_t.
+
 2010-05-07  Marcus Brinkmann  <marcus@g10code.de>
 
        * engine-g13.c, gpgme.c, engine-gpgsm.c, engine-gpg.c,
index 2c5ef10898b49913d701cca943cb45dddaac2e29..eed9daa484d9c7a8e350140b7671bdd80845082c 100644 (file)
 /* Include stdio.h for the FILE type definition.  */
 #include <stdio.h>
 
-#ifdef _MSC_VER
+#ifdef _WIN32
   typedef long off_t;
   typedef long ssize_t;
 #else
 # include <sys/types.h>
 #endif
 
+#include <time.h>
+
 #include <gpg-error.h>
 
 #ifdef __cplusplus