From: James Bunton Date: Mon, 25 Jun 2007 15:42:09 +0000 (+0000) Subject: Fixed warning about fmax X-Git-Url: https://code.delx.au/pong/commitdiff_plain/0b50a2872bb8a9e611f5aef1f30742e3e160c5b7 Fixed warning about fmax --- diff --git a/pong.c b/pong.c index 4ecaa8a..8cf082b 100644 --- a/pong.c +++ b/pong.c @@ -38,6 +38,10 @@ static GLdouble ballVecX = 0.0; static GLdouble ballVecY = 0.0; +static inline double fmax(double a, double b) { + return a > b ? a : b; +} + static void initBall(void) { ballX = 0.0; ballY = 0.0;