#include <time.h>
#include <stdarg.h>
+/* For getaddrinfo, configure/cmake defined _WIN32_WCE to something >= 0x0401. */
#include <windows.h>
#undef interface
/* Seriously. Windows CE does not have errno. Don't you hate it when
that happens? */
-#define errno (GetLastError ())
+#define errno ((int)GetLastError ())
#define ENOENT ERROR_FILE_NOT_FOUND
#define EMFILE ERROR_TOO_MANY_OPEN_FILES
#define _S_IREAD 0000400 /* read permission, owner */
#define _S_IWRITE 0000200 /* write permission, owner */
#define _S_IEXEC 0000100 /* execute/search permission, owner */
+
#ifndef __OFF_T_DEFINED
typedef long off_t;
#define __OFF_T_DEFINED
#endif
+#ifndef _INTPTR_T_DEFINED
+typedef int intptr_t;
+#define _INTPTR_T_DEFINED
+#endif
+#ifndef _UINTPTR_T_DEFINED
+typedef unsigned int uintptr_t;
+#define _UINTPTR_T_DEFINED
+#endif
#ifndef _MAX_FNAME
#define _MAX_FNAME 256
BOOL SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
+#define OutputDebugStringA _dbus_wince_OutputDebugStringA
+void OutputDebugStringA(LPCSTR);
+
+
DBUS_END_DECLS
#endif /* DBUS_SYSDEPS_WINCE_GLUE_H */