version.c revision 251875
198944Sobrien/* Licensed to the Apache Software Foundation (ASF) under one or more
298944Sobrien * contributor license agreements.  See the NOTICE file distributed with
398944Sobrien * this work for additional information regarding copyright ownership.
498944Sobrien * The ASF licenses this file to You under the Apache License, Version 2.0
598944Sobrien * (the "License"); you may not use this file except in compliance with
698944Sobrien * the License.  You may obtain a copy of the License at
798944Sobrien *
898944Sobrien *     http://www.apache.org/licenses/LICENSE-2.0
998944Sobrien *
1098944Sobrien * Unless required by applicable law or agreed to in writing, software
1198944Sobrien * distributed under the License is distributed on an "AS IS" BASIS,
1298944Sobrien * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1398944Sobrien * See the License for the specific language governing permissions and
1498944Sobrien * limitations under the License.
1598944Sobrien */
1698944Sobrien
1798944Sobrien#include "apr_version.h"
1898944Sobrien#include "apr_general.h" /* for APR_STRINGIFY */
1998944Sobrien
2098944SobrienAPR_DECLARE(void) apr_version(apr_version_t *pvsn)
2198944Sobrien{
2298944Sobrien    pvsn->major = APR_MAJOR_VERSION;
2398944Sobrien    pvsn->minor = APR_MINOR_VERSION;
2498944Sobrien    pvsn->patch = APR_PATCH_VERSION;
2598944Sobrien#ifdef APR_IS_DEV_VERSION
2698944Sobrien    pvsn->is_dev = 1;
2798944Sobrien#else
2898944Sobrien    pvsn->is_dev = 0;
2998944Sobrien#endif
3098944Sobrien}
3198944Sobrien
3298944SobrienAPR_DECLARE(const char *) apr_version_string(void)
3398944Sobrien{
3498944Sobrien    return APR_VERSION_STRING;
3598944Sobrien}
3698944Sobrien