summaryrefslogtreecommitdiff
path: root/include/errmsg.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-08-30 01:22:02 +0300
committerunknown <monty@hundin.mysql.fi>2001-08-30 01:22:02 +0300
commit9a4aac7e23446427ec705d3b65095b8a8f956aee (patch)
tree0333b688453602a24b5a46133bd78136de042d90 /include/errmsg.h
parenta221315fa94310bad927a0a76ca9baf204166ccb (diff)
downloadmariadb-git-9a4aac7e23446427ec705d3b65095b8a8f956aee.tar.gz
Fix for OS2
Docs/manual.texi: Cleanup
Diffstat (limited to 'include/errmsg.h')
-rw-r--r--include/errmsg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/errmsg.h b/include/errmsg.h
index 7a967954bab..8087c526937 100644
--- a/include/errmsg.h
+++ b/include/errmsg.h
@@ -29,8 +29,11 @@ extern const char *client_errors[]; /* Error messages */
#define CR_MIN_ERROR 2000 /* For easier client code */
#define CR_MAX_ERROR 2999
-#undef ER
+#if defined(OS2) && defined( MYSQL_SERVER)
+#define CER(X) client_errors[(X)-CR_MIN_ERROR]
+#else
#define ER(X) client_errors[(X)-CR_MIN_ERROR]
+#endif
#define CLIENT_ERRMAP 2 /* Errormap used by my_error() */
#define CR_UNKNOWN_ERROR 2000