| 1 |
/* |
| 2 |
* Version numbering for LAME. |
| 3 |
* |
| 4 |
* Copyright (c) 1999 A.L. Faber |
| 5 |
* |
| 6 |
* This library is free software; you can redistribute it and/or |
| 7 |
* modify it under the terms of the GNU Library General Public |
| 8 |
* License as published by the Free Software Foundation; either |
| 9 |
* version 2 of the License, or (at your option) any later version. |
| 10 |
* |
| 11 |
* This library is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
* Library General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU Library General Public |
| 17 |
* License along with this library; if not, write to the |
| 18 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 19 |
* Boston, MA 02111-1307, USA. |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef LAME_VERSION_H |
| 23 |
#define LAME_VERSION_H |
| 24 |
|
| 25 |
|
| 26 |
/* |
| 27 |
* To make a string from a token, use the # operator: |
| 28 |
*/ |
| 29 |
#ifndef STR |
| 30 |
# define __STR(x) #x |
| 31 |
# define STR(x) __STR(x) |
| 32 |
#endif |
| 33 |
|
| 34 |
# define LAME_URL "https://lame.sourceforge.io" |
| 35 |
|
| 36 |
|
| 37 |
# define LAME_MAJOR_VERSION 3 /* Major version number */ |
| 38 |
# define LAME_MINOR_VERSION 101 /* Minor version number */ |
| 39 |
# define LAME_TYPE_VERSION 1 /* 0:alpha 1:beta 2:release */ |
| 40 |
# define LAME_PATCH_VERSION 3 /* Patch level */ |
| 41 |
# define LAME_ALPHA_VERSION (LAME_TYPE_VERSION==0) |
| 42 |
# define LAME_BETA_VERSION (LAME_TYPE_VERSION==1) |
| 43 |
# define LAME_RELEASE_VERSION (LAME_TYPE_VERSION==2) |
| 44 |
|
| 45 |
# define PSY_MAJOR_VERSION 1 /* Major version number */ |
| 46 |
# define PSY_MINOR_VERSION 0 /* Minor version number */ |
| 47 |
# define PSY_ALPHA_VERSION 0 /* Set number if this is an alpha version, otherwise zero */ |
| 48 |
# define PSY_BETA_VERSION 0 /* Set number if this is a beta version, otherwise zero */ |
| 49 |
|
| 50 |
#if LAME_ALPHA_VERSION |
| 51 |
#define LAME_PATCH_LEVEL_STRING " alpha " STR(LAME_PATCH_VERSION) |
| 52 |
#endif |
| 53 |
#if LAME_BETA_VERSION |
| 54 |
#define LAME_PATCH_LEVEL_STRING " beta " STR(LAME_PATCH_VERSION) |
| 55 |
#endif |
| 56 |
#if LAME_RELEASE_VERSION |
| 57 |
#if LAME_PATCH_VERSION |
| 58 |
#define LAME_PATCH_LEVEL_STRING " release " STR(LAME_PATCH_VERSION) |
| 59 |
#else |
| 60 |
#define LAME_PATCH_LEVEL_STRING "" |
| 61 |
#endif |
| 62 |
#endif |
| 63 |
|
| 64 |
# define LAME_VERSION_STRING STR(LAME_MAJOR_VERSION) "." STR(LAME_MINOR_VERSION) LAME_PATCH_LEVEL_STRING |
| 65 |
|
| 66 |
#endif /* LAME_VERSION_H */ |
| 67 |
|
| 68 |
/* End of version.h */ |