diff options
Diffstat (limited to 'nx-X11/lib/X11/CrGlCur.c')
-rw-r--r-- | nx-X11/lib/X11/CrGlCur.c | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/nx-X11/lib/X11/CrGlCur.c b/nx-X11/lib/X11/CrGlCur.c index 88a8c30d3..460660f81 100644 --- a/nx-X11/lib/X11/CrGlCur.c +++ b/nx-X11/lib/X11/CrGlCur.c @@ -44,14 +44,18 @@ in this Software without prior written authorization from The Open Group. #endif #include "Cr.h" +#ifdef __CYGWIN__ +#define LIBXCURSOR "cygXcursor-1.dll" +#endif + #if defined(hpux) -typedef shl_dt XModuleType; +typedef shl_t XModuleType; #else typedef void *XModuleType; #endif #ifndef LIBXCURSOR -#define LIBXCURSOR "libXcursor.so" +#define LIBXCURSOR "libXcursor.so.1" #endif static char libraryName[] = LIBXCURSOR; @@ -76,18 +80,18 @@ open_library (void) break; *dot = '\0'; } - return 0; + return NULL; } static void * -fetch_symbol (XModuleType module, char *under_symbol) +fetch_symbol (XModuleType module, const char *under_symbol) { void *result = NULL; - char *symbol = under_symbol + 1; + const char *symbol = under_symbol + 1; #if defined(hpux) int getsyms_cnt, i; struct shl_symbol *symbols; - + getsyms_cnt = shl_getsymbols(module, TYPE_PROCEDURE, EXPORT_SYMBOLS, malloc, &symbols); @@ -218,20 +222,20 @@ _XTryShapeBitmapCursor (Display *dpy, } #endif -Cursor XCreateGlyphCursor(dpy, source_font, mask_font, - source_char, mask_char, - foreground, background) - register Display *dpy; - Font source_font, mask_font; - unsigned int source_char, mask_char; - XColor _Xconst *foreground, *background; - -{ +Cursor XCreateGlyphCursor( + register Display *dpy, + Font source_font, + Font mask_font, + unsigned int source_char, + unsigned int mask_char, + XColor _Xconst *foreground, + XColor _Xconst *background) +{ Cursor cid; register xCreateGlyphCursorReq *req; #ifdef USE_DYNAMIC_XCURSOR - cid = _XTryShapeCursor (dpy, source_font, mask_font, + cid = _XTryShapeCursor (dpy, source_font, mask_font, source_char, mask_char, foreground, background); if (cid) return cid; |