Non-X11 compile fix for generated code.
[wine] / tsx11 / ts_xpm.c
1 /*
2  * Thread safe wrappers around xpm calls.
3  * This file was generated automatically by tools/make_X11wrappers
4  * DO NOT EDIT!
5  */
6
7 #include "config.h"
8
9 #ifndef X_DISPLAY_MISSING
10
11 #ifdef HAVE_LIBXXPM
12
13 #include <X11/xpm.h>
14 #include "debug.h"
15 #include "x11drv.h"
16
17 int TSXpmCreatePixmapFromData(Display *a0, Drawable a1, char **a2, Pixmap *a3, Pixmap *a4, XpmAttributes *a5)
18 {
19   int r;
20   TRACE(x11, "Call XpmCreatePixmapFromData\n");
21   EnterCriticalSection( &X11DRV_CritSection );
22   r = XpmCreatePixmapFromData(a0, a1, a2, a3, a4, a5);
23   LeaveCriticalSection( &X11DRV_CritSection );
24   TRACE(x11, "Ret XpmCreatePixmapFromData\n");
25   return r;
26 }
27
28 int TSXpmAttributesSize(void)
29 {
30   int r;
31   TRACE(x11, "Call XpmAttributesSize\n");
32   EnterCriticalSection( &X11DRV_CritSection );
33   r = XpmAttributesSize();
34   LeaveCriticalSection( &X11DRV_CritSection );
35   TRACE(x11, "Ret XpmAttributesSize\n");
36   return r;
37 }
38
39 #endif /* defined(HAVE_LIBXXPM) */
40
41 #endif /* !defined(X_DISPLAY_MISSING) */