[Plib-devel] trivial bug in jsLinuxOld.cxx
Brought to you by:
sjbaker
From: Stanislav I. <in...@al...> - 2005-02-08 11:49:13
|
Greetings! You have a little mistake in the #ifdefs jsLinux.cxx -- #if defined(JS_VERSION) && JS_VERSION >= 0x010000 -- jsLinuxOld.cxx -- #if !defined(JS_VERSION) || JS_VERSION >= 0x010000 -- As a result _both_ versions of each method will always include if JS_VERSION >=0.10000 and JS_VERSION defined. diff -Naur plib-1.8.4/src/js/jsLinuxOld.cxx plib-1.8.4.new/src/js/jsLinuxOld.cxx --- plib-1.8.4/src/js/jsLinuxOld.cxx 2004-10-21 03:49:33 +0400 +++ plib-1.8.4.new/src/js/jsLinuxOld.cxx 2005-02-08 14:33:24 +0300 @@ -27,7 +27,7 @@ #include <linux/joystick.h> -#if !defined(JS_VERSION) || JS_VERSION >= 0x010000 +#if !defined(JS_VERSION) || JS_VERSION < 0x010000 #include <fcntl.h> #include <sys/ioctl.h> -- With best regards Stanislav Ievlev ALT Linux Team. |