From c751a9179db306494d9ac1a0affe9465ebbbaf2a Mon Sep 17 00:00:00 2001 From: dcnieho Date: Sat, 11 Jul 2015 21:26:48 +0000 Subject: [PATCH] Fix compilation on Linux. Commit ce15044f7362943aee7d465bf20310ba02991dae introduced an error "undefined reference to `sball_initialized'" on non-Windows operating systems. (cherry picked from commit 989ceddc191419daa02b08f664bbbce11cbc5598) (cherry picked from commit 989ceddc191419daa02b08f664bbbce11cbc5598) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1769 7f0cb862-5218-0410-a997-914c9d46530a --- 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 --------------------------------------------------- */