ap_release.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* Licensed to the Apache Software Foundation (ASF) under one or more
  2. * contributor license agreements. See the NOTICE file distributed with
  3. * this work for additional information regarding copyright ownership.
  4. * The ASF licenses this file to You under the Apache License, Version 2.0
  5. * (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /**
  17. * @file ap_release.h
  18. * @brief Version Release defines
  19. */
  20. #ifndef AP_RELEASE_H
  21. #define AP_RELEASE_H
  22. #define AP_SERVER_COPYRIGHT \
  23. "Copyright 2019 The Apache Software Foundation."
  24. /*
  25. * The below defines the base string of the Server: header. Additional
  26. * tokens can be added via the ap_add_version_component() API call.
  27. *
  28. * The tokens are listed in order of their significance for identifying the
  29. * application.
  30. *
  31. * "Product tokens should be short and to the point -- use of them for
  32. * advertizing or other non-essential information is explicitly forbidden."
  33. *
  34. * Example: "Apache/1.1.0 MrWidget/0.1-alpha"
  35. */
  36. #define AP_SERVER_BASEVENDOR "Apache Software Foundation"
  37. #define AP_SERVER_BASEPROJECT "Apache HTTP Server"
  38. #define AP_SERVER_BASEPRODUCT "Apache"
  39. #define AP_SERVER_MAJORVERSION_NUMBER 2
  40. #define AP_SERVER_MINORVERSION_NUMBER 4
  41. #define AP_SERVER_PATCHLEVEL_NUMBER 41
  42. #define AP_SERVER_DEVBUILD_BOOLEAN 0
  43. /* Synchronize the above with docs/manual/style/version.ent */
  44. #if !AP_SERVER_DEVBUILD_BOOLEAN
  45. #define AP_SERVER_ADD_STRING ""
  46. #else
  47. #ifndef AP_SERVER_ADD_STRING
  48. #define AP_SERVER_ADD_STRING "-dev"
  49. #endif
  50. #endif
  51. /* APR_STRINGIFY is defined here, and also in apr_general.h, so wrap it */
  52. #ifndef APR_STRINGIFY
  53. /** Properly quote a value as a string in the C preprocessor */
  54. #define APR_STRINGIFY(n) APR_STRINGIFY_HELPER(n)
  55. /** Helper macro for APR_STRINGIFY */
  56. #define APR_STRINGIFY_HELPER(n) #n
  57. #endif
  58. /* keep old macros as well */
  59. #define AP_SERVER_MAJORVERSION APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
  60. #define AP_SERVER_MINORVERSION APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
  61. #define AP_SERVER_PATCHLEVEL APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
  62. AP_SERVER_ADD_STRING
  63. #define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
  64. #define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
  65. #define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
  66. #define AP_SERVER_VERSION AP_SERVER_BASEVERSION
  67. /* macro for Win32 .rc files using numeric csv representation */
  68. #define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER, \
  69. AP_SERVER_MINORVERSION_NUMBER, \
  70. AP_SERVER_PATCHLEVEL_NUMBER
  71. #endif