summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjpipes@shakedown.(none) <>2006-12-06 19:13:00 -0500
committerjpipes@shakedown.(none) <>2006-12-06 19:13:00 -0500
commit07ee2594e5ee739a3ee35347bbca7f56556427c8 (patch)
treeb103edf77061fc0e2cb51cd76c9a6f051aff922c /include
parentbe212d34863ffdd0ab5dba1f633f69a9df0510ef (diff)
downloadmariadb-git-07ee2594e5ee739a3ee35347bbca7f56556427c8.tar.gz
Fix for Bug #20246 (enum mysql_enum_shutdown_level not well-defined in mysql_com.h)
MYSQL_VERSION_ID is tested before it has been defined. This leads to a warning when compiling with -Wundef and it also will break the internal logic of mysql_com.h as soon as MYSQL_VERSION_ID exceeds 50000. The fix entailed a simple re-ordering of included files in mysql.h
Diffstat (limited to 'include')
-rw-r--r--include/mysql.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mysql.h b/include/mysql.h
index 55ef6ee6d10..d0b8f57903d 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -65,9 +65,9 @@ typedef int my_socket;
#endif /* my_socket_defined */
#endif /* _global_h */
+#include "mysql_version.h"
#include "mysql_com.h"
#include "mysql_time.h"
-#include "mysql_version.h"
#include "typelib.h"
#include "my_list.h" /* for LISTs used in 'MYSQL' and 'MYSQL_STMT' */