3630
|
1 /*
|
|
2 * win32dep.h
|
|
3 */
|
|
4
|
|
5 #ifndef _WIN32DEP_H_
|
|
6 #define _WIN32DEP_H_
|
|
7 #include <gdk/gdkevents.h>
|
|
8
|
|
9 extern char* wgaim_install_dir(void);
|
|
10 extern char* wgaim_lib_dir(void);
|
|
11 extern char* wgaim_locale_dir(void);
|
|
12 extern GdkFilterReturn wgaim_window_filter(GdkXEvent *xevent,
|
|
13 GdkEvent *event,
|
|
14 gpointer data);
|
|
15 extern void wgaim_init(void);
|
|
16
|
|
17 #define unlink _unlink
|
|
18 #define bzero( dest, size ) memset( ## dest ##, 0, ## size ## )
|
|
19 #define sleep(x) Sleep((x)*1000)
|
|
20 #define snprintf _snprintf
|
|
21 #define vsnprintf _vsnprintf
|
|
22 #define DATADIR wgaim_install_dir()
|
|
23
|
|
24 /* Needed for accessing global variables outside the current module */
|
|
25 #ifdef G_MODULE_IMPORT
|
|
26 #undef G_MODULE_IMPORT
|
|
27 #endif
|
|
28 #define G_MODULE_IMPORT __declspec(dllimport)
|
|
29
|
|
30 #define LIBDIR wgaim_lib_dir()
|
|
31 #define LOCALEDIR wgaim_locale_dir()
|
|
32
|
|
33 #endif /* _WIN32DEP_H_ */
|
|
34
|