mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Restored linux compat
This commit is contained in:
parent
1c5b8670d9
commit
3aebbd7173
@ -12,7 +12,7 @@ CPP = gcc
|
|||||||
NAME = mysqlx_amxx
|
NAME = mysqlx_amxx
|
||||||
MYSQL_DIR = m_inc
|
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 += thread/BaseWorker.cpp thread/ThreadWorker.cpp thread/PosixThreads.cpp
|
||||||
OBJECTS += mysql/MysqlQuery.cpp mysql/MysqlResultSet.cpp mysql/MysqlDatabase.cpp mysql/MysqlDriver.cpp
|
OBJECTS += mysql/MysqlQuery.cpp mysql/MysqlResultSet.cpp mysql/MysqlDatabase.cpp mysql/MysqlDriver.cpp
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include "sh_list.h"
|
||||||
#include "mysql2_header.h"
|
#include "mysql2_header.h"
|
||||||
|
|
||||||
|
using namespace SourceMod;
|
||||||
|
|
||||||
struct olddb_s
|
struct olddb_s
|
||||||
{
|
{
|
||||||
IDatabase *pDatabase;
|
IDatabase *pDatabase;
|
||||||
@ -258,7 +262,6 @@ static cell AMX_NATIVE_CALL dbi_result(AMX *amx, cell *params)
|
|||||||
unsigned int fields = rs->FieldCount();
|
unsigned int fields = rs->FieldCount();
|
||||||
int len;
|
int len;
|
||||||
char *field = MF_GetAmxString(amx, params[2], 0, &len);
|
char *field = MF_GetAmxString(amx, params[2], 0, &len);
|
||||||
num = -1;
|
|
||||||
for (unsigned int i=0; i<fields; i++)
|
for (unsigned int i=0; i<fields; i++)
|
||||||
{
|
{
|
||||||
if (strcmp(field, rs->FieldNumToName(i)) == 0)
|
if (strcmp(field, rs->FieldNumToName(i)) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user