Sha256: e9fff0fa13e39409a707318d463acd894689b732d8cb83d8edc668b63067add4

Contents?: true

Size: 852 Bytes

Versions: 49

Compression:

Stored size: 852 Bytes

Contents

#ifndef MYSQL2_EXT
#define MYSQL2_EXT

// tell rbx not to use it's caching compat layer
// by doing this we're making a promize to RBX that
// we'll never modify the pointers we get back from RSTRING_PTR
#define RSTRING_NOT_MODIFIED
#include <ruby.h>
#include <fcntl.h>

#ifndef HAVE_UINT
#define HAVE_UINT
typedef unsigned short    ushort;
typedef unsigned int    uint;
#endif

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

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

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

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

#endif

Version data entries

49 entries across 49 versions & 5 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/ext/mysql2/mysql2_ext.h
mysql2-0.2.19b4 ext/mysql2/mysql2_ext.h
mysql2-0.3.12b4 ext/mysql2/mysql2_ext.h
mysql2-0.2.19b3 ext/mysql2/mysql2_ext.h
mysql2-0.3.12b3 ext/mysql2/mysql2_ext.h
mysql2-0.3.12b2 ext/mysql2/mysql2_ext.h
mysql2-0.2.19b2 ext/mysql2/mysql2_ext.h
mysql2-0.3.12b1 ext/mysql2/mysql2_ext.h
mysql2-0.2.19b1 ext/mysql2/mysql2_ext.h
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/ext/mysql2/mysql2_ext.h
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/ext/mysql2/mysql2_ext.h
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/ext/mysql2/mysql2_ext.h
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/ext/mysql2/mysql2_ext.h
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11/ext/mysql2/mysql2_ext.h
mysql2-sp-0.3.10 ext/mysql2/mysql2_ext.h
solaris-mysql2-0.3.11 ext/mysql2/mysql2_ext.h
mysql2-0.3.11-x86-mswin32-60 ext/mysql2/mysql2_ext.h
mysql2-0.3.11-x86-mingw32 ext/mysql2/mysql2_ext.h
mysql2-0.3.11 ext/mysql2/mysql2_ext.h
mysql2-0.2.18-x86-mswin32-60 ext/mysql2/mysql2_ext.h