diff options
Diffstat (limited to 'src/w32-ce.h')
-rw-r--r-- | src/w32-ce.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/w32-ce.h b/src/w32-ce.h index f34eb1b3..36f1e9e5 100644 --- a/src/w32-ce.h +++ b/src/w32-ce.h @@ -26,13 +26,14 @@ #ifdef _MSC_VER typedef int pid_t; +#define strdup _strdup +#define strcasecmp _stricmp #endif #include <winsock2.h> #include <ws2tcpip.h> /* For getaddrinfo. */ #include <windows.h> - #define getenv _gpgme_wince_getenv char *getenv (const char *name); @@ -67,5 +68,24 @@ DWORD GetTempPathA(DWORD,LPSTR); #define SHGetSpecialFolderPathA _gpgme_wince_SHGetSpecialFolderPathA BOOL SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL); +int _gpgme_wince_access (const char *fname, int mode); +#define access(a,b) _gpgme_wince_access ((a), (b)) + +void *_gpgme_wince_bsearch (const void *key, const void *base, + size_t nmemb, size_t size, + int (*compar) (const void *, const void *)); +#define bsearch(a,b,c,d,e) _gpgme_wince_bsearch ((a),(b),(c),(d),(e)) + +#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 */ |