]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_has_dirent_h.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_has_dirent_h.ipp
1 // (C) Copyright John Maddock 2002.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_HAS_DIRENT_H
9 // TITLE: <dirent.h>
10 // DESCRIPTION: The platform has an <dirent.h>.
11
12 #include <dirent.h>
13
14
15 namespace boost_has_dirent_h{
16
17 int test()
18 {
19 DIR* pd = opendir("foobar");
20 if(pd) closedir(pd);
21 return 0;
22 }
23
24 }
25
26
27
28
29
30