]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/winapi/include/boost/detail/winapi/get_system_directory.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / winapi / include / boost / detail / winapi / get_system_directory.hpp
1 // get_system_directory.hpp --------------------------------------------------------------//
2
3 // Copyright 2016 Klemens D. Morgenstern
4
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
7
8 #ifndef BOOST_DETAIL_WINAPI_GET_SYSTEM_DIRECTORY_HPP_
9 #define BOOST_DETAIL_WINAPI_GET_SYSTEM_DIRECTORY_HPP_
10
11 #include <boost/detail/winapi/basic_types.hpp>
12 #include <boost/predef/platform.h>
13
14 #ifdef BOOST_HAS_PRAGMA_ONCE
15 #pragma once
16 #endif
17
18 #if BOOST_PLAT_WINDOWS_DESKTOP
19
20 #if !defined( BOOST_USE_WINDOWS_H )
21 extern "C" {
22 #if !defined( BOOST_NO_ANSI_APIS )
23 BOOST_SYMBOL_IMPORT boost::detail::winapi::UINT_ WINAPI
24 GetSystemDirectoryA(
25 boost::detail::winapi::LPSTR_ lpBuffer,
26 boost::detail::winapi::UINT_ uSize);
27 #endif
28
29 BOOST_SYMBOL_IMPORT boost::detail::winapi::UINT_ WINAPI
30 GetSystemDirectoryW(
31 boost::detail::winapi::LPWSTR_ lpBuffer,
32 boost::detail::winapi::UINT_ uSize);
33 } // extern "C"
34 #endif
35
36 namespace boost {
37 namespace detail {
38 namespace winapi {
39
40 #if !defined( BOOST_NO_ANSI_APIS )
41 using ::GetSystemDirectoryA;
42 #endif
43 using ::GetSystemDirectoryW;
44
45 #if !defined( BOOST_NO_ANSI_APIS )
46 BOOST_FORCEINLINE UINT_ get_system_directory(LPSTR_ lpBuffer, UINT_ uSize)
47 {
48 return ::GetSystemDirectoryA(lpBuffer, uSize);
49 }
50 #endif
51
52 BOOST_FORCEINLINE UINT_ get_system_directory(LPWSTR_ lpBuffer, UINT_ uSize)
53 {
54 return ::GetSystemDirectoryW(lpBuffer, uSize);
55 }
56
57 }
58 }
59 }
60
61 #endif // BOOST_PLAT_WINDOWS_DESKTOP
62
63 #endif // BOOST_DETAIL_WINAPI_GET_SYSTEM_DIRECTORY_HPP_