Restored linux compat

This commit is contained in:
David Anderson 2006-04-24 10:31:37 +00:00
parent 1c5b8670d9
commit 3aebbd7173
2 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@ CPP = gcc
NAME = mysqlx_amxx
MYSQL_DIR = m_inc
OBJECTS = basic_sql.cpp handles.cpp module.cpp threading.cpp sdk/amxxmodule.cpp
OBJECTS = basic_sql.cpp handles.cpp module.cpp threading.cpp sdk/amxxmodule.cpp oldcompat_sql.cpp
OBJECTS += thread/BaseWorker.cpp thread/ThreadWorker.cpp thread/PosixThreads.cpp
OBJECTS += mysql/MysqlQuery.cpp mysql/MysqlResultSet.cpp mysql/MysqlDatabase.cpp mysql/MysqlDriver.cpp

View File

@ -1,5 +1,9 @@
#include <stdio.h>
#include "sh_list.h"
#include "mysql2_header.h"
using namespace SourceMod;
struct olddb_s
{
IDatabase *pDatabase;
@ -258,7 +262,6 @@ static cell AMX_NATIVE_CALL dbi_result(AMX *amx, cell *params)
unsigned int fields = rs->FieldCount();
int len;
char *field = MF_GetAmxString(amx, params[2], 0, &len);
num = -1;
for (unsigned int i=0; i<fields; i++)
{
if (strcmp(field, rs->FieldNumToName(i)) == 0)