version.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. #ifndef LAME_VERSION_H
  22. #define LAME_VERSION_H
  23. /*
  24. * To make a string from a token, use the # operator:
  25. */
  26. #ifndef STR
  27. # define __STR(x) #x
  28. # define STR(x) __STR(x)
  29. #endif
  30. # define LAME_URL "http://lame.sf.net"
  31. # define LAME_MAJOR_VERSION 3 /* Major version number */
  32. # define LAME_MINOR_VERSION 100 /* Minor version number */
  33. # define LAME_TYPE_VERSION 2 /* 0:alpha 1:beta 2:release */
  34. # define LAME_PATCH_VERSION 0 /* Patch level */
  35. # define LAME_ALPHA_VERSION (LAME_TYPE_VERSION==0)
  36. # define LAME_BETA_VERSION (LAME_TYPE_VERSION==1)
  37. # define LAME_RELEASE_VERSION (LAME_TYPE_VERSION==2)
  38. # define PSY_MAJOR_VERSION 1 /* Major version number */
  39. # define PSY_MINOR_VERSION 0 /* Minor version number */
  40. # define PSY_ALPHA_VERSION 0 /* Set number if this is an alpha version, otherwise zero */
  41. # define PSY_BETA_VERSION 0 /* Set number if this is a beta version, otherwise zero */
  42. #if LAME_ALPHA_VERSION
  43. #define LAME_PATCH_LEVEL_STRING " alpha " STR(LAME_PATCH_VERSION)
  44. #endif
  45. #if LAME_BETA_VERSION
  46. #define LAME_PATCH_LEVEL_STRING " beta " STR(LAME_PATCH_VERSION)
  47. #endif
  48. #if LAME_RELEASE_VERSION
  49. #if LAME_PATCH_VERSION
  50. #define LAME_PATCH_LEVEL_STRING " release " STR(LAME_PATCH_VERSION)
  51. #else
  52. #define LAME_PATCH_LEVEL_STRING ""
  53. #endif
  54. #endif
  55. # define LAME_VERSION_STRING STR(LAME_MAJOR_VERSION) "." STR(LAME_MINOR_VERSION) LAME_PATCH_LEVEL_STRING
  56. #endif /* LAME_VERSION_H */
  57. /* End of version.h */