1 /*
2  *  Created by Martin on 06/03/2017.
3  *
4  *  Distributed under the Boost Software License, Version 1.0. (See accompanying
5  *  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6  */
7 #ifndef TWOBLUECUBES_CATCH_ERRNO_GUARD_H_INCLUDED
8 #define TWOBLUECUBES_CATCH_ERRNO_GUARD_H_INCLUDED
9 
10 namespace Catch {
11 
12     class ErrnoGuard {
13     public:
14         ErrnoGuard();
15         ~ErrnoGuard();
16     private:
17         int m_oldErrno;
18     };
19 
20 }
21 
22 #endif // TWOBLUECUBES_CATCH_ERRNO_GUARD_H_INCLUDED
23