2 * Version numbering for LAME.
4 * Copyright (c) 1999 A.L. Faber
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.
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.
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.
22 #ifndef LAME_VERSION_H
23 #define LAME_VERSION_H
27 * To make a string from a token, use the # operator:
31 # define STR(x) __STR(x)
34 # define LAME_URL "http://lame.sf.net"
37 # define LAME_MAJOR_VERSION 3 /* Major version number */
38 # define LAME_MINOR_VERSION 99 /* Minor version number */
39 # define LAME_TYPE_VERSION 2 /* 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)
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 */
50 #if LAME_ALPHA_VERSION
51 #define LAME_PATCH_LEVEL_STRING " alpha " STR(LAME_PATCH_VERSION)
54 #define LAME_PATCH_LEVEL_STRING " beta " STR(LAME_PATCH_VERSION)
56 #if LAME_RELEASE_VERSION
57 #if LAME_PATCH_VERSION
58 #define LAME_PATCH_LEVEL_STRING " release " STR(LAME_PATCH_VERSION)
60 #define LAME_PATCH_LEVEL_STRING ""
64 # define LAME_VERSION_STRING STR(LAME_MAJOR_VERSION) "." STR(LAME_MINOR_VERSION) LAME_PATCH_LEVEL_STRING
66 #endif /* LAME_VERSION_H */
68 /* End of version.h */