]> git.tdb.fi Git - libs/core.git/blob - source/io/handle_private.h
Replace earlier options sharing the same short or long name
[libs/core.git] / source / io / handle_private.h
1 #ifndef MSP_IO_HANDLE_PRIVATE_H_
2 #define MSP_IO_HANDLE_PRIVATE_H_
3
4 #ifdef WIN32
5 #include <windows.h>
6 #endif
7 #include "handle.h"
8
9 namespace Msp {
10 namespace IO {
11
12 struct Handle::Private
13 {
14 #ifdef WIN32
15         typedef HANDLE H;
16 #else
17         typedef int H;
18 #endif
19
20         H handle;
21
22         Private();
23
24         Private &operator=(H);
25         operator H() const { return handle; }
26 };
27
28 } // namespace IO
29 } // namespace Msp
30
31 #endif