xlsxio_version.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*****************************************************************************
  2. Copyright (C) 2016 Brecht Sanders All Rights Reserved
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  17. THE SOFTWARE.
  18. *****************************************************************************/
  19. /**
  20. * @file xlsxio_version.h
  21. * @brief XLSX I/O header file with version information.
  22. * @author Brecht Sanders
  23. *
  24. * Only use this header file when version information is needed at compile
  25. * time. Otherwise the version functions in the libraries should be used.
  26. * \sa XLSXIO_VERSION_*
  27. * \sa XLSXIO_VERSION_STRING
  28. * \sa xlsxioread_get_version()
  29. * \sa xlsxioread_get_version_string()
  30. * \sa xlsxiowrite_get_version()
  31. * \sa xlsxiowrite_get_version_string()
  32. */
  33. #ifndef INCLUDED_XLSXIO_VERSION_H
  34. #define INCLUDED_XLSXIO_VERSION_H
  35. /*! \brief version number constants
  36. * \sa xlsxioread_get_version()
  37. * \sa xlsxiowrite_get_version()
  38. * \name XLSXIO_VERSION_*
  39. * \{
  40. */
  41. /*! \brief major version number */
  42. #define XLSXIO_VERSION_MAJOR 0
  43. /*! \brief minor version number */
  44. #define XLSXIO_VERSION_MINOR 2
  45. /*! \brief micro version number */
  46. #define XLSXIO_VERSION_MICRO 27
  47. /*! @} */
  48. /*! \cond PRIVATE */
  49. #ifndef XML_UNICODE_WCHAR_T
  50. #define XLSXIO_VERSION_STRINGIZE_(major, minor, micro) #major"."#minor"."#micro
  51. #else
  52. #define XLSXIO_VERSION_STRINGIZE_(major, minor, micro) L ## #major"."#minor"."#micro
  53. #endif
  54. #define XLSXIO_VERSION_STRINGIZE(major, minor, micro) XLSXIO_VERSION_STRINGIZE_(major, minor, micro)
  55. /*! \endcond */
  56. /*! \brief string with dotted version number \hideinitializer */
  57. #define XLSXIO_VERSION_STRING XLSXIO_VERSION_STRINGIZE(XLSXIO_VERSION_MAJOR, XLSXIO_VERSION_MINOR, XLSXIO_VERSION_MICRO)
  58. /*! \brief string with name of XLSX I/O reading library */
  59. #define XLSXIOREAD_NAME "libxlsxio_read"
  60. /*! \brief string with name of XLSX I/O writing library */
  61. #define XLSXIOWRITE_NAME "libxlsxio_write"
  62. /*! \brief string with name and version of XLSX I/O reading library \hideinitializer */
  63. #define XLSXIOREAD_FULLNAME XLSXIOREAD_NAME " " XLSXIO_VERSION_STRING
  64. /*! \brief string with name and version of XLSX I/O writing library \hideinitializer */
  65. #define XLSXIOWRITE_FULLNAME XLSXIOWRITE_NAME " " XLSXIO_VERSION_STRING
  66. #endif