From 989ceddc191419daa02b08f664bbbce11cbc5598 Mon Sep 17 00:00:00 2001 From: Johannes Zarl Date: Fri, 10 Jul 2015 16:31:42 +0200 Subject: [PATCH] Fix compilation on Linux. Commit ce15044f7362943aee7d465bf20310ba02991dae introduced an error "undefined reference to `sball_initialized'" on non-Windows operating systems. --- freeglut/freeglut/src/fg_spaceball.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/fg_spaceball.c b/freeglut/freeglut/src/fg_spaceball.c index 16b0c52..9534746 100644 --- a/freeglut/freeglut/src/fg_spaceball.c +++ b/freeglut/freeglut/src/fg_spaceball.c @@ -11,7 +11,7 @@ #include #include "fg_internal.h" -#if(_WIN32_WINNT >= 0x0501) +#if( !_WIN32 || _WIN32_WINNT >= 0x0501) /* -- PRIVATE FUNCTIONS --------------------------------------------------- */