diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-30 01:22:02 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-30 01:22:02 +0300 |
commit | 9a4aac7e23446427ec705d3b65095b8a8f956aee (patch) | |
tree | 0333b688453602a24b5a46133bd78136de042d90 /include/errmsg.h | |
parent | a221315fa94310bad927a0a76ca9baf204166ccb (diff) | |
download | mariadb-git-9a4aac7e23446427ec705d3b65095b8a8f956aee.tar.gz |
Fix for OS2
Docs/manual.texi:
Cleanup
Diffstat (limited to 'include/errmsg.h')
-rw-r--r-- | include/errmsg.h | 5 |
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 |