diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:38:45 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:39:52 +0900 |
commit | 5cde13f21d36c7224b0e13d11c4b49379ae5210d (patch) | |
tree | e8269ac85a4b0f7d416e2565fa4f451b5cb41351 /boost/detail/winapi/get_system_directory.hpp | |
parent | d9ec475d945d3035377a0d89ed42e382d8988891 (diff) | |
download | boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.gz boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.bz2 boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.zip |
Imported Upstream version 1.61.0
Change-Id: I96a1f878d1e6164f01e9aadd5147f38fca448d90
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/detail/winapi/get_system_directory.hpp')
-rw-r--r-- | boost/detail/winapi/get_system_directory.hpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/boost/detail/winapi/get_system_directory.hpp b/boost/detail/winapi/get_system_directory.hpp new file mode 100644 index 0000000000..dd2d6807ce --- /dev/null +++ b/boost/detail/winapi/get_system_directory.hpp @@ -0,0 +1,63 @@ +// get_system_directory.hpp --------------------------------------------------------------// + +// Copyright 2016 Klemens D. Morgenstern + +// Distributed under the Boost Software License, Version 1.0. +// See http://www.boost.org/LICENSE_1_0.txt + +#ifndef BOOST_DETAIL_WINAPI_GET_SYSTEM_DIRECTORY_HPP_ +#define BOOST_DETAIL_WINAPI_GET_SYSTEM_DIRECTORY_HPP_ + +#include <boost/detail/winapi/basic_types.hpp> +#include <boost/predef/platform.h> + +#ifdef BOOST_HAS_PRAGMA_ONCE +#pragma once +#endif + +#if BOOST_PLAT_WINDOWS_DESKTOP + +#if !defined( BOOST_USE_WINDOWS_H ) +extern "C" { +#if !defined( BOOST_NO_ANSI_APIS ) +BOOST_SYMBOL_IMPORT boost::detail::winapi::UINT_ WINAPI +GetSystemDirectoryA( + boost::detail::winapi::LPSTR_ lpBuffer, + boost::detail::winapi::UINT_ uSize); +#endif + +BOOST_SYMBOL_IMPORT boost::detail::winapi::UINT_ WINAPI +GetSystemDirectoryW( + boost::detail::winapi::LPWSTR_ lpBuffer, + boost::detail::winapi::UINT_ uSize); +} // extern "C" +#endif + +namespace boost { +namespace detail { +namespace winapi { + +#if !defined( BOOST_NO_ANSI_APIS ) +using ::GetSystemDirectoryA; +#endif +using ::GetSystemDirectoryW; + +#if !defined( BOOST_NO_ANSI_APIS ) +BOOST_FORCEINLINE UINT_ get_system_directory(LPSTR_ lpBuffer, UINT_ uSize) +{ + return ::GetSystemDirectoryA(lpBuffer, uSize); +} +#endif + +BOOST_FORCEINLINE UINT_ get_system_directory(LPWSTR_ lpBuffer, UINT_ uSize) +{ + return ::GetSystemDirectoryW(lpBuffer, uSize); +} + +} +} +} + +#endif // BOOST_PLAT_WINDOWS_DESKTOP + +#endif // BOOST_DETAIL_WINAPI_GET_SYSTEM_DIRECTORY_HPP_ |