summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp.h
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2004-10-21 03:18:23 +0000
committerjsorg71 <jsorg71>2004-10-21 03:18:23 +0000
commitb4b62a619a2a7c52c1975580272646c7ae2111e6 (patch)
tree49a79553d3b295e46c5e20ff88f072d86763be77 /xrdp/xrdp.h
parent330a4ffb9877563a8a95b773cc62f2cb8263723b (diff)
downloadxrdp-proprietary-b4b62a619a2a7c52c1975580272646c7ae2111e6.tar.gz
xrdp-proprietary-b4b62a619a2a7c52c1975580272646c7ae2111e6.zip
win32 compile changes
Diffstat (limited to 'xrdp/xrdp.h')
-rw-r--r--xrdp/xrdp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/xrdp/xrdp.h b/xrdp/xrdp.h
index 7b06b86b..59d3b80e 100644
--- a/xrdp/xrdp.h
+++ b/xrdp/xrdp.h
@@ -68,6 +68,14 @@
/* font macros */
#define FONT_DATASIZE(f) ((((f)->height * (((f)->width + 7) / 8)) + 3) & ~3);
+#ifdef _WIN32
+#define THREAD_RV unsigned long
+#define THREAD_CC __stdcall
+#else
+#define THREAD_RV void*
+#define THREAD_CC
+#endif
+
/* os_calls.c */
int g_init_system(void);
int g_exit_system(void);
@@ -93,7 +101,7 @@ int g_tcp_select(int sck);
int g_is_term(void);
void g_set_term(int in_val);
void g_sleep(int msecs);
-int g_thread_create(void* (*start_routine)(void*), void* arg);
+int g_thread_create(THREAD_RV (THREAD_CC * start_routine)(void*), void* arg);
void* g_rc4_info_create(void);
void g_rc4_info_delete(void* rc4_info);
void g_rc4_set_key(void* rc4_info, char* key, int len);