[CONC-120] mysql.h depends on my_global.h (mariadb_deinitialize_ssl) Created: 2015-02-06  Updated: 2015-04-14

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Julian Smythe Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: 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.



 Comments   
Comment by Daniel Schepler [ 2015-04-14 ]

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.

Generated at Thu Feb 08 03:03:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.