Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
2.1
-
None
-
None
-
None
Description
A global variable (mariadb_deinitialize_ssl) added to mysql.h to fix MDEV-6671 is declared with the type "uint" which is only declared in my_global.h, which makes mysql.h unintentionally(?) depend on my_global.h.
This breaks programs using the library that don't include my_global.h before mysql.h.
I also found that adding #include <my_global.h> before #include <mysql.h> in my program as a workaround just resulted in a large set of new errors on Windows, as my program #includes <winsock.h> while my_global.h indirectly #includes <winsock2.h>. So, it probably wouldn't be a good idea to fix this by just adding #include <my_global.h> to mysql.h.