Fix compiler warnings.
[fvwm.git] / libs / Fcursor.h
blob5f18629a51a001b3d6b88f8006f039ac72c2f900
1 #ifndef FCURSOR_H
2 #define FCURSOR_H
4 #ifdef HAVE_XCURSOR
5 # include <X11/Xcursor/Xcursor.h>
7 typedef XcursorImage FcursorImage;
8 typedef XcursorImages FcursorImages;
9 typedef XcursorPixel FcursorPixel;
11 # define FcursorFilenameLoadImages(a,b) XcursorFilenameLoadImages(a,b)
12 # define FcursorGetDefaultSize(a) XcursorGetDefaultSize(a)
13 # define FcursorImageCreate(a,b) XcursorImageCreate(a,b)
14 # define FcursorImageDestroy(a) XcursorImageDestroy(a)
15 # define FcursorImagesDestroy(a) XcursorImagesDestroy(a)
16 # define FcursorImageLoadCursor(a,b) XcursorImageLoadCursor(a,b)
17 # define FcursorImagesLoadCursor(a,b) XcursorImagesLoadCursor(a,b)
18 #else
19 typedef struct {
20 int width;
21 int height;
22 int xhot;
23 int yhot;
24 int delay;
25 void *pixels;
26 } FcursorImage;
27 typedef struct {
28 int nimage;
29 FcursorImage **images;
30 } FcursorImages;
31 typedef void FcursorPixel;
33 # define FcursorFilenameLoadImages(a,b) 0
34 # define FcursorGetDefaultSize(a) 0
35 # define FcursorImageCreate(a,b) 0
36 # define FcursorImageDestroy(a)
37 # define FcursorImagesDestroy(a)
38 # define FcursorImageLoadCursor(a,b) 0
39 # define FcursorImagesLoadCursor(a,b) 0
40 #endif
42 #endif /* FCURSOR_H */