]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/handle_private.h
Move most platform-specific code into overlay directories
[libs/core.git] / source / io / handle_private.h
index d73a2b88af6343a23690e461e519af4d5e623820..4fa690ab3c50a1bde134de16b69013a80e82aeba 100644 (file)
@@ -1,28 +1,20 @@
 #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