Blame include/ap_release.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * @file ap_release.h
Packit 90a5c9
 * @brief Version Release defines
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef AP_RELEASE_H
Packit 90a5c9
#define AP_RELEASE_H
Packit 90a5c9
Packit 90a5c9
#define AP_SERVER_COPYRIGHT \
Packit 90a5c9
  "Copyright 2018 The Apache Software Foundation."
Packit 90a5c9
Packit 90a5c9
/*
Packit 90a5c9
 * The below defines the base string of the Server: header. Additional
Packit 90a5c9
 * tokens can be added via the ap_add_version_component() API call.
Packit 90a5c9
 *
Packit 90a5c9
 * The tokens are listed in order of their significance for identifying the
Packit 90a5c9
 * application.
Packit 90a5c9
 *
Packit 90a5c9
 * "Product tokens should be short and to the point -- use of them for
Packit 90a5c9
 * advertizing or other non-essential information is explicitly forbidden."
Packit 90a5c9
 *
Packit 90a5c9
 * Example: "Apache/1.1.0 MrWidget/0.1-alpha"
Packit 90a5c9
 */
Packit 90a5c9
#define AP_SERVER_BASEVENDOR "Apache Software Foundation"
Packit 90a5c9
#define AP_SERVER_BASEPROJECT "Apache HTTP Server"
Packit 90a5c9
#define AP_SERVER_BASEPRODUCT "Apache"
Packit 90a5c9
Packit 90a5c9
#define AP_SERVER_MAJORVERSION_NUMBER 2
Packit 90a5c9
#define AP_SERVER_MINORVERSION_NUMBER 4
Packit 90a5c9
#define AP_SERVER_PATCHLEVEL_NUMBER   37
Packit 90a5c9
#define AP_SERVER_DEVBUILD_BOOLEAN    0
Packit 90a5c9
Packit 90a5c9
/* Synchronize the above with docs/manual/style/version.ent */
Packit 90a5c9
Packit 90a5c9
#if !AP_SERVER_DEVBUILD_BOOLEAN
Packit 90a5c9
#define AP_SERVER_ADD_STRING          ""
Packit 90a5c9
#else
Packit 90a5c9
#ifndef AP_SERVER_ADD_STRING
Packit 90a5c9
#define AP_SERVER_ADD_STRING          "-dev"
Packit 90a5c9
#endif
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/* APR_STRINGIFY is defined here, and also in apr_general.h, so wrap it */
Packit 90a5c9
#ifndef APR_STRINGIFY
Packit 90a5c9
/** Properly quote a value as a string in the C preprocessor */
Packit 90a5c9
#define APR_STRINGIFY(n) APR_STRINGIFY_HELPER(n)
Packit 90a5c9
/** Helper macro for APR_STRINGIFY */
Packit 90a5c9
#define APR_STRINGIFY_HELPER(n) #n
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/* keep old macros as well */
Packit 90a5c9
#define AP_SERVER_MAJORVERSION  APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
Packit 90a5c9
#define AP_SERVER_MINORVERSION  APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
Packit 90a5c9
#define AP_SERVER_PATCHLEVEL    APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
Packit 90a5c9
                                AP_SERVER_ADD_STRING
Packit 90a5c9
Packit 90a5c9
#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
Packit 90a5c9
#define AP_SERVER_BASEREVISION  AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
Packit 90a5c9
#define AP_SERVER_BASEVERSION   AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
Packit 90a5c9
#define AP_SERVER_VERSION       AP_SERVER_BASEVERSION
Packit 90a5c9
Packit 90a5c9
/* macro for Win32 .rc files using numeric csv representation */
Packit 90a5c9
#define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER, \
Packit 90a5c9
                                 AP_SERVER_MINORVERSION_NUMBER, \
Packit 90a5c9
                                 AP_SERVER_PATCHLEVEL_NUMBER
Packit 90a5c9
Packit 90a5c9
#endif