version.h
01 1 Copyright (c) 2005, Joerg Wunsch -*- c -*-
022All rights reserved.
033
044Redistribution and use in source and binary forms, with or without
055modification, are permitted provided that the following conditions are met:
066
077* Redistributions of source code must retain the above copyright
088notice, this list of conditions and the following disclaimer.
099
1010* Redistributions in binary form must reproduce the above copyright
1111notice, this list of conditions and the following disclaimer in
1212the documentation and/or other materials provided with the
1313distribution.
1414
1515* Neither the name of the copyright holders nor the names of
1616contributors may be used to endorse or promote products derived
1717from this software without specific prior written permission.
1818
1919THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2020AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2121IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2222ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
2323LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2424CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2525SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2626INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2727CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2828ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929POSSIBILITY OF SUCH DAMAGE. */
3030
3131/* $Id: version.h.in 870 2005-09-12 20:18:12Z joerg_wunsch $ */
3232
3333/** \defgroup avr_version <avr/version.h>: avr-libc version macros
3434\code #include <avr/version.h> \endcode
3535
3636This header file defines macros that contain version numbers and
3737strings describing the current version of avr-libc.
3838
3939The version number itself basically consists of three pieces that
4040are separated by a dot: the major number, the minor number, and
4141the revision number. For development versions (which use an odd
4242minor number), the string representation additionally gets the
4343date code (YYYYMMDD) appended.
4444
4545This file will also be included by \c <avr/io.h>. That way,
4646portable tests can be implemented using \c <avr/io.h> that can be
4747used in code that wants to remain backwards-compatible to library
4848versions prior to the date when the library version API had been
4949added, as referenced but undefined C preprocessor macros
5050automatically evaluate to 0.
5151*/
5252
5353#ifndef _AVR_VERSION_H_
5454#define _AVR_VERSION_H_
5555
5656/** \ingroup avr_version
5757String literal representation of the current library version. */
58