#ifndef MYSQL2_EXT #define MYSQL2_EXT /* tell rbx not to use it's caching compat layer by doing this we're making a promise to RBX that we'll never modify the pointers we get back from RSTRING_PTR */ #define RSTRING_NOT_MODIFIED #include #include #ifndef HAVE_UINT #define HAVE_UINT typedef unsigned short ushort; typedef unsigned int uint; #endif #ifdef HAVE_MYSQL_H #include #include #include #include #else #include #include #include #include #endif #ifdef HAVE_RUBY_ENCODING_H #include #endif #ifdef HAVE_RUBY_THREAD_H #include #endif #if defined(__GNUC__) && (__GNUC__ >= 3) #define RB_MYSQL_UNUSED __attribute__ ((unused)) #else #define RB_MYSQL_UNUSED #endif #include #include #endif