Skip to content

Commit

Permalink
Fix some build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Y_Less committed Mar 28, 2022
1 parent 53148cd commit 90f0e29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SDK/amxplugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ NUDE int AMXAPI amx_Allot(AMX *amx, int cells, cell *amx_addr, cell **phys_addr)
_asm jmp dword ptr [eax+PLUGIN_AMX_EXPORT_Allot*4];
}

NUDE int AMXAPI amx_Callback(AMX *amx, cell index, cell *result, cell *params)
NUDE int AMXAPI amx_Callback(AMX *amx, cell index, cell *result, const cell *params)
{
_asm mov eax, pAMXFunctions;
_asm jmp dword ptr [eax+PLUGIN_AMX_EXPORT_Callback*4];
Expand Down Expand Up @@ -344,7 +344,7 @@ int AMXAPI amx_Allot(AMX *amx, int cells, cell *amx_addr, cell **phys_addr)
return fn(amx, cells, amx_addr, phys_addr);
}

typedef int AMXAPI (*amx_Callback_t)(AMX *amx, cell index, cell *result, cell *params);
typedef int AMXAPI (*amx_Callback_t)(AMX *amx, cell index, cell *result, const cell *params);
int AMXAPI amx_Callback(AMX *amx, cell index, cell *result, cell *params)
{
amx_Callback_t fn = ((amx_Callback_t*)pAMXFunctions)[PLUGIN_AMX_EXPORT_Callback];
Expand Down
2 changes: 1 addition & 1 deletion sscanf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void *
NULL, // PLUGIN_AMX_EXPORT_UTF8Put
};

extern void *
extern "C" void *
pAMXFunctions;

extern unsigned int
Expand Down
4 changes: 2 additions & 2 deletions sscanf.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<StringPooling>true</StringPooling>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
Expand All @@ -83,7 +83,7 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<PreprocessorDefinitions>HAVE_STDINT_H;WIN32;NDEBUG;_WINDOWS;_USRDLL;SSCANF_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SmallerTypeCheck>false</SmallerTypeCheck>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FloatingPointModel>Strict</FloatingPointModel>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<PrecompiledHeader>
Expand Down

0 comments on commit 90f0e29

Please sign in to comment.