Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:04:25

0001 //---------------------------------------------------------------------------//
0002 // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
0007 //
0008 // See http://boostorg.github.com/compute for more information.
0009 //---------------------------------------------------------------------------//
0010 
0011 #ifndef BOOST_COMPUTE_DETAIL_GETENV_HPP
0012 #define BOOST_COMPUTE_DETAIL_GETENV_HPP
0013 
0014 #include <cstdlib>
0015 
0016 namespace boost {
0017 namespace compute {
0018 namespace detail {
0019 
0020 inline const char* getenv(const char *env_var)
0021 {
0022 #ifdef _MSC_VER
0023 #  pragma warning(push)
0024 #  pragma warning(disable: 4996)
0025 #endif
0026     return std::getenv(env_var);
0027 #ifdef _MSC_VER
0028 #  pragma warning(pop)
0029 #endif
0030 }
0031 
0032 } // end detail namespace
0033 } // end compute namespace
0034 } // end boost namespace
0035 
0036 #endif // BOOST_COMPUTE_DETAIL_GETENV_HPP