boost_has_dirent_h.ipp 565 B

123456789101112131415161718192021222324252627282930
  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. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_HAS_DIRENT_H
  7. // TITLE: <dirent.h>
  8. // DESCRIPTION: The platform has an <dirent.h>.
  9. #include <dirent.h>
  10. namespace boost_has_dirent_h{
  11. int test()
  12. {
  13. DIR* pd = opendir("foobar");
  14. if(pd) closedir(pd);
  15. return 0;
  16. }
  17. }