summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql/errmsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/libmysql/errmsg.h')
-rw-r--r--ext/mysql/libmysql/errmsg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysql/libmysql/errmsg.h b/ext/mysql/libmysql/errmsg.h
index f81bf962db..233abfca59 100644
--- a/ext/mysql/libmysql/errmsg.h
+++ b/ext/mysql/libmysql/errmsg.h
@@ -15,7 +15,11 @@ extern const char *client_errors[]; /* Error messages */
#define CR_MIN_ERROR 2000 /* For easier client code */
#define CR_MAX_ERROR 2999
+#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