aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/CrGlCur.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-07-29 00:44:38 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-08-24 23:05:45 +0200
commitacfe0013c9d1ef1344c7813d4dae51ba6f2da622 (patch)
treeba17af85081b346a6b0e753fd9ac1e590a4ca494 /nx-X11/lib/X11/CrGlCur.c
parent35145c251305a562c4273d712fab5b4b387913ab (diff)
downloadnx-libs-acfe0013c9d1ef1344c7813d4dae51ba6f2da622.tar.gz
nx-libs-acfe0013c9d1ef1344c7813d4dae51ba6f2da622.tar.bz2
nx-libs-acfe0013c9d1ef1344c7813d4dae51ba6f2da622.zip
update src files *[ch] to libX11 1.3.4
Diffstat (limited to 'nx-X11/lib/X11/CrGlCur.c')
-rw-r--r--nx-X11/lib/X11/CrGlCur.c36
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;