1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#ifndef vtkMySQLDatabasePrivate_h
#define vtkMySQLDatabasePrivate_h
#ifdef _WIN32
# include <winsock.h> // mysql.h relies on the typedefs from here
#endif
#include "vtkIOMySQLModule.h" // For export macro
#include <mysql.h> // needed for MYSQL typedefs
#if !defined(MARIADB_BASE_VERSION) && !defined(MARIADB_VERSION_ID) && \
MYSQL_VERSION_ID >= 80001 && MYSQL_VERSION_ID != 80002
typedef bool my_bool;
#endif
class VTKIOMYSQL_EXPORT vtkMySQLDatabasePrivate
{
public:
vtkMySQLDatabasePrivate() :
Connection( NULL )
{
mysql_init( &this->NullConnection );
}
MYSQL NullConnection;
MYSQL *Connection;
};
#endif // vtkMySQLDatabasePrivate_h
// VTK-HeaderTest-Exclude: vtkMySQLDatabasePrivate.h
|