#ifndef MSP_IO_HANDLE_PRIVATE_H_
#define MSP_IO_HANDLE_PRIVATE_H_
-#ifdef WIN32
-#include <windows.h>
-#endif
#include "handle.h"
+#include "handle_platform.h"
namespace Msp {
namespace IO {
struct Handle::Private
{
-#ifdef WIN32
- typedef HANDLE H;
-#else
- typedef int H;
-#endif
-
- H handle;
+ PlatformHandle handle;
Private();
- Private &operator=(H);
- operator H() const { return handle; }
+ Private &operator=(PlatformHandle);
+ operator PlatformHandle() const { return handle; }
};
} // namespace IO