projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing the DOS/Linux line ending problems in the progs/demos/smooth_opengl3 project...
[freeglut]
/
src
/
freeglut_joystick.c
diff --git
a/src/freeglut_joystick.c
b/src/freeglut_joystick.c
index
547c839
..
62c91ef
100644
(file)
--- a/
src/freeglut_joystick.c
+++ b/
src/freeglut_joystick.c
@@
-1060,7
+1060,7
@@
static void fghJoystickOpen( SFG_Joystick* joy )
# ifdef JS_NEW
unsigned char u;
# else
# ifdef JS_NEW
unsigned char u;
# else
-# if defined( __linux__ )
+# if defined( __linux__ ) || TARGET_HOST_SOLARIS
int counter = 0;
# endif
# endif
int counter = 0;
# endif
# endif
@@
-1394,7
+1394,7
@@
static void fghJoystickOpen( SFG_Joystick* joy )
# endif
#endif
# endif
#endif
-#if defined( __linux__ )
+#if defined( __linux__ ) || TARGET_HOST_SOLARIS
/* Default for older Linux systems. */
joy->num_axes = 2;
joy->num_buttons = 32;
/* Default for older Linux systems. */
joy->num_axes = 2;
joy->num_buttons = 32;