Skip to content

Commit

Permalink
fix the LIBMPDCLIENT_CHECK_VERSION() macro
Browse files Browse the repository at this point in the history
The comparison operators were the wrong way around.  Sorry for this
major f*ckup.
  • Loading branch information
MaxKellermann committed Mar 28, 2010
1 parent d397cb0 commit 6d03364
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
libmpdclient 2.2 (2009/??/??)
* MixRamp support
* fix the LIBMPDCLIENT_CHECK_VERSION() macro

libmpdclient 2.1 (2009/12/06)
* status: added mpd_status_get_elapsed_ms()
Expand Down
6 changes: 3 additions & 3 deletions include/mpd/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
* @since libmpdclient 2.1
*/
#define LIBMPDCLIENT_CHECK_VERSION(major, minor, patch) \
((major) > LIBMPDCLIENT_MAJOR_VERSION || \
((major) < LIBMPDCLIENT_MAJOR_VERSION || \
((major) == LIBMPDCLIENT_MAJOR_VERSION && \
((minor) > LIBMPDCLIENT_MINOR_VERSION || \
((minor) < LIBMPDCLIENT_MINOR_VERSION || \
((minor) == LIBMPDCLIENT_MINOR_VERSION && \
(patch) >= LIBMPDCLIENT_PATCH_VERSION))))
(patch) <= LIBMPDCLIENT_PATCH_VERSION))))

#endif

0 comments on commit 6d03364

Please sign in to comment.