diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-22 08:05:36 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-22 08:05:36 +0300 |
commit | 1b4032c74e36dfdbb2ba0063796dd7c2b924babd (patch) | |
tree | a700448990cea256eedec4d59b8b510ca03b8291 /mysql/libmysql/authentication_win/common.h | |
parent | b1471ebbe9db90c472ff356bea6a7c8aedb45db9 (diff) |
Explore possibility of supporting mingwmingw
Diffstat (limited to 'mysql/libmysql/authentication_win/common.h')
-rw-r--r-- | mysql/libmysql/authentication_win/common.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mysql/libmysql/authentication_win/common.h b/mysql/libmysql/authentication_win/common.h index b7525fb..5298195 100644 --- a/mysql/libmysql/authentication_win/common.h +++ b/mysql/libmysql/authentication_win/common.h @@ -48,14 +48,14 @@ void set_log_level(unsigned int); /* If DEBUG_ERROR_LOG is defined then error logging happens only - in debug-copiled code. Otherwise ERROR_LOG() expands to + in debug-copiled code. Otherwise ERROR_LOG() expands to error_log_print() even in production code. Note: Macro ERROR_LOG() can use printf-like format string like this: ERROR_LOG(Level, ("format string", args)); - The implementation should handle it correctly. Currently it is passed + The implementation should handle it correctly. Currently it is passed to fprintf() (see error_log_vprint() function). */ @@ -78,7 +78,8 @@ void error_log_print(const char *fmt, ...) va_end(args); } -typedef char Error_message_buf[1024]; +#define ERROR_MESSAGE_BUFF_SZ 1024 +typedef char Error_message_buf[ERROR_MESSAGE_BUFF_SZ]; const char* get_last_error_message(Error_message_buf); |