summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--implement.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/implement.h b/implement.h
index d902fa4..ac5bed4 100644
--- a/implement.h
+++ b/implement.h
@@ -41,6 +41,14 @@
#define _WIN32_WINNT 0x400
#include <windows.h>
+
+/*
+ * In case windows.h doesn't define it (e.g. WinCE perhaps)
+ */
+#ifndef PAPCFUNC
+# define PAPCFUNC (void CALLBACK (*)(DWORD))
+#endif
+
/*
* note: ETIMEDOUT is correctly defined in winsock.h
*/