Sha256: 7b99f2b73e82f0bfa5c61abf7d1573460e19e847cdc6f9d2317609d0085d8e8f

Contents?: true

Size: 823 Bytes

Versions: 4

Compression:

Stored size: 823 Bytes

Contents

#ifndef MYSQL2_EXT
#define MYSQL2_EXT

void Init_mysql2(void);

/* 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 <ruby.h>

#ifdef HAVE_MYSQL_H
#include <mysql.h>
#include <errmsg.h>
#else
#include <mysql/mysql.h>
#include <mysql/errmsg.h>
#endif

#ifdef HAVE_RUBY_ENCODING_H
#include <ruby/encoding.h>
#endif
#ifdef HAVE_RUBY_THREAD_H
#include <ruby/thread.h>
#endif

#if defined(__GNUC__) && (__GNUC__ >= 3)
#define RB_MYSQL_NORETURN __attribute__ ((noreturn))
#define RB_MYSQL_UNUSED __attribute__ ((unused))
#else
#define RB_MYSQL_NORETURN
#define RB_MYSQL_UNUSED
#endif

#include <client.h>
#include <statement.h>
#include <result.h>
#include <infile.h>

#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mysql2-0.4.10-x86-mswin32-60 ext/mysql2/mysql2_ext.h
mysql2-0.4.10-x86-mingw32 ext/mysql2/mysql2_ext.h
mysql2-0.4.10-x64-mingw32 ext/mysql2/mysql2_ext.h
mysql2-0.4.10 ext/mysql2/mysql2_ext.h