-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ab0516
commit e383cb7
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
SPDX-License-Identifier: GPL-2.0-or-later | ||
myMPD (c) 2018-2019 Juergen Mang <[email protected]> | ||
https://github.com/jcorporation/libmpdclient | ||
*/ | ||
|
||
/*! \file | ||
* patched libmpdclient library for usage in myMPD | ||
* | ||
* Do not include this header directly. Use mpd/client.h instead. | ||
*/ | ||
|
||
#ifndef LIBMYMPDCLIENT_VERSION_H | ||
#define LIBMYMPDCLIENT_VERSION_H | ||
|
||
#define LIBMYMPDCLIENT_MAJOR_VERSION 1 | ||
#define LIBMYMPDCLIENT_MINOR_VERSION 0 | ||
#define LIBMYMPDCLIENT_PATCH_VERSION 5 | ||
|
||
/** | ||
* Preprocessor macro which allows you to check which version of | ||
* libmpdclient you are compiling with. It can be used in | ||
* preprocessor directives. | ||
* | ||
* @return true if this libmympdclient version equals or is newer than | ||
* the specified version number | ||
*/ | ||
#define LIBMYMPDCLIENT_CHECK_VERSION(major, minor, patch) \ | ||
((major) < LIBMYMPDCLIENT_MAJOR_VERSION || \ | ||
((major) == LIBMYMPDCLIENT_MAJOR_VERSION && \ | ||
((minor) < LIBMYMPDCLIENT_MINOR_VERSION || \ | ||
((minor) == LIBMYMPDCLIENT_MINOR_VERSION && \ | ||
(patch) <= LIBMYMPDCLIENT_PATCH_VERSION)))) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters