From eef49ef4171011dec88156481cc70ee350cbbc92 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 15 Nov 2010 08:40:30 +0000 Subject: Fixes for the MSC build --- src/w32-ce.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/w32-ce.h') diff --git a/src/w32-ce.h b/src/w32-ce.h index fafaa06c..a74c6e17 100644 --- a/src/w32-ce.h +++ b/src/w32-ce.h @@ -32,7 +32,6 @@ typedef int pid_t; #include /* For getaddrinfo. */ #include - #define getenv _gpgme_wince_getenv char *getenv (const char *name); @@ -75,11 +74,16 @@ void *_gpgme_wince_bsearch (const void *key, const void *base, int (*compar) (const void *, const void *)); #define bsearch(a,b,c,d,e) _gpgme_wince_bsearch ((a),(b),(c),(d),(e)) -/* Remove the redefined __leave keyword. It is defined by MSC for W32 - in excpt.h and not in sehmap.h as for the plain windows - version. */ -#if defined(_MSC_VER) && defined(HAVE_W32CE_SYSTEM) +#if defined(_MSC_VER) + /* Remove the redefined __leave keyword. It is defined by MSC for + W32 in excpt.h and not in sehmap.h as for the plain windows + version. */ # undef leave +# define HKEY_PERFORMANCE_DATA ((HKEY)0x80000004) +# define HKEY_CURRENT_CONFIG ((HKEY)0x80000005) + /* Replace the Mingw32CE provided abort function. */ +# define abort() do { TerminateProcess (GetCurrentProcess(), 8); } while (0) +# define _IOLBF 0x40 #endif #endif /* GPGME_W32_CE_H */ -- cgit v1.2.3