[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 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. |