summaryrefslogtreecommitdiff
path: root/xc/lib/Xmu/CursorName.c
diff options
context:
space:
mode:
authorrws <empty>1991-02-17 15:25:42 +0000
committerrws <empty>1991-02-17 15:25:42 +0000
commit9d6d8a42f97c95e7d741a7a54a8bf663bd0a1662 (patch)
tree3d955c6eb6033ea8775c959d36c21b737943ab9f /xc/lib/Xmu/CursorName.c
parente7e4505a35d6e83dfa84228fd03c30239cb8d8b9 (diff)
use Const instead of _Xconst
Diffstat (limited to 'xc/lib/Xmu/CursorName.c')
-rw-r--r--xc/lib/Xmu/CursorName.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/xc/lib/Xmu/CursorName.c b/xc/lib/Xmu/CursorName.c
index ea49066e2..15c21ed4b 100644
--- a/xc/lib/Xmu/CursorName.c
+++ b/xc/lib/Xmu/CursorName.c
@@ -1,5 +1,5 @@
/*
- * $XConsortium: CursorName.c,v 1.5 90/12/11 13:19:03 rws Exp $
+ * $XConsortium: CursorName.c,v 1.6 90/12/19 18:17:14 converse Exp $
*
* Copyright 1989 Massachusetts Institute of Technology
*
@@ -26,6 +26,12 @@
#include <X11/Xmu/CurUtil.h>
#include <X11/cursorfont.h>
+#if __STDC__
+#define Const const
+#else
+#define Const /**/
+#endif
+
#if NeedFunctionPrototypes
int XmuCursorNameToIndex (_Xconst char *name)
#else
@@ -33,8 +39,8 @@ int XmuCursorNameToIndex (name)
char *name;
#endif
{
- static _Xconst struct _CursorName {
- _Xconst char *name;
+ static Const struct _CursorName {
+ Const char *name;
unsigned int shape;
} cursor_names[] = {
{"x_cursor", XC_X_cursor},
@@ -115,7 +121,7 @@ int XmuCursorNameToIndex (name)
{"watch", XC_watch},
{"xterm", XC_xterm},
};
- register _Xconst struct _CursorName *table;
+ register Const struct _CursorName *table;
register int i;
char tmp[40];