]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | //---------------------------------------------------------------------------// |
2 | // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0 | |
5 | // See accompanying file LICENSE_1_0.txt or copy at | |
6 | // http://www.boost.org/LICENSE_1_0.txt | |
7 | // | |
8 | // See http://boostorg.github.com/compute for more information. | |
9 | //---------------------------------------------------------------------------// | |
10 | ||
11 | #ifndef BOOST_COMPUTE_DETAIL_GETENV_HPP | |
12 | #define BOOST_COMPUTE_DETAIL_GETENV_HPP | |
13 | ||
14 | #include <cstdlib> | |
15 | ||
16 | namespace boost { | |
17 | namespace compute { | |
18 | namespace detail { | |
19 | ||
20 | inline const char* getenv(const char *env_var) | |
21 | { | |
22 | #ifdef _MSC_VER | |
23 | # pragma warning(push) | |
24 | # pragma warning(disable: 4996) | |
25 | #endif | |
26 | return std::getenv(env_var); | |
27 | #ifdef _MSC_VER | |
28 | # pragma warning(pop) | |
29 | #endif | |
30 | } | |
31 | ||
32 | } // end detail namespace | |
33 | } // end compute namespace | |
34 | } // end boost namespace | |
35 | ||
36 | #endif // BOOST_COMPUTE_DETAIL_GETENV_HPP |