From 0b50a2872bb8a9e611f5aef1f30742e3e160c5b7 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 25 Jun 2007 15:42:09 +0000 Subject: [PATCH] Fixed warning about fmax --- pong.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2