use QDECL instead of __cdecl

This commit is contained in:
Jonathan Gray 2013-04-22 20:42:14 +10:00
parent 118f3df648
commit 0c24fcdbfb
2 changed files with 3 additions and 3 deletions

View file

@ -227,11 +227,11 @@ void CG_RegisterWeapon( int weaponNum ) {
// give ourselves the functions if we can
if (weaponData[weaponNum].func)
{
weaponInfo->missileTrailFunc = (void (__cdecl *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].func;
weaponInfo->missileTrailFunc = (void (QDECL *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].func;
}
if (weaponData[weaponNum].altfunc)
{
weaponInfo->alt_missileTrailFunc = (void (__cdecl *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].altfunc;
weaponInfo->alt_missileTrailFunc = (void (QDECL *)(struct centity_s *,const struct weaponInfo_s *))weaponData[weaponNum].altfunc;
}
switch ( weaponNum ) //extra client only stuff

View file

@ -791,7 +791,7 @@ void CTRLandScape::CalculateShaders(void)
// Cleanup our temporary array
delete[] shaders;
qsort(mSortedPatches, mSortedCount, sizeof(*mSortedPatches), (int (__cdecl *)(const void *,const void *))ComparePatchInfo);
qsort(mSortedPatches, mSortedCount, sizeof(*mSortedPatches), (int (QDECL *)(const void *,const void *))ComparePatchInfo);
#endif // PRE_RELEASE_DEMO
}