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