Add header file containing version number.

This commit is contained in:
chris_kohlhoff 2007-05-08 12:17:36 +00:00
parent ee4d63e31f
commit 476963e8d0
3 changed files with 25 additions and 0 deletions

View File

@ -145,6 +145,7 @@ nobase_include_HEADERS = \
asio/system_error.hpp \ asio/system_error.hpp \
asio/thread.hpp \ asio/thread.hpp \
asio/time_traits.hpp \ asio/time_traits.hpp \
asio/version.hpp \
asio/write.hpp \ asio/write.hpp \
asio.hpp asio.hpp

View File

@ -68,6 +68,7 @@
#include "asio/system_error.hpp" #include "asio/system_error.hpp"
#include "asio/thread.hpp" #include "asio/thread.hpp"
#include "asio/time_traits.hpp" #include "asio/time_traits.hpp"
#include "asio/version.hpp"
#include "asio/write.hpp" #include "asio/write.hpp"
#endif // ASIO_HPP #endif // ASIO_HPP

View File

@ -0,0 +1,23 @@
//
// version.hpp
// ~~~~~~~~~~~
//
// Copyright (c) 2003-2007 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_VERSION_HPP
#define ASIO_VERSION_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
// ASIO_VERSION % 100 is the sub-minor version
// ASIO_VERSION / 100 % 1000 is the minor version
// ASIO_VERSION / 100000 is the major version
#define ASIO_VERSION 308 // 0.3.8
#endif // ASIO_VERSION_HPP