From 7331f9a5c72b1fd1db7c9e6b75a0ee31e38fa13d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 4 Aug 2011 13:50:16 +0100 Subject: [PATCH 2/2] q_shared: define Q_ftol as something whose address can be taken This fixes failure to build from source on all non-x86 platforms. Bug: https://bugzilla.icculus.org/show_bug.cgi?id=5155 --- code/qcommon/q_shared.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index 07b9245..8257bee 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -443,7 +443,9 @@ int Q_isnan(float x); extern int (QDECL *Q_VMftol)(void); extern void (QDECL *Q_SnapVector)(vec3_t vec); #else - #define Q_ftol(f) lrintf((f)) + // Q_ftol must expand to a function name so the pluggable renderer can take + // its address + #define Q_ftol lrintf #define Q_SnapVector(vec)\ do\ {\ -- 1.7.5.4