Fix compilation on Linux.
authorJohannes Zarl <johannes@zarl.at>
Sat, 11 Jul 2015 21:26:48 +0000 (21:26 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Sat, 11 Jul 2015 21:26:48 +0000 (21:26 +0000)
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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1769 7f0cb862-5218-0410-a997-914c9d46530a

src/fg_spaceball.c

index 16b0c52..9534746 100644 (file)
@@ -11,7 +11,7 @@
 #include <GL/freeglut.h>
 #include "fg_internal.h"
 
-#if(_WIN32_WINNT >= 0x0501)
+#if( !_WIN32 || _WIN32_WINNT >= 0x0501)
 
 /* -- PRIVATE FUNCTIONS --------------------------------------------------- */