X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fhandle_private.h;h=4fa690ab3c50a1bde134de16b69013a80e82aeba;hp=d73a2b88af6343a23690e461e519af4d5e623820;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hpb=b4806214e905752617691f851717033fd3f266c2 diff --git a/source/io/handle_private.h b/source/io/handle_private.h index d73a2b8..4fa690a 100644 --- a/source/io/handle_private.h +++ b/source/io/handle_private.h @@ -1,28 +1,20 @@ #ifndef MSP_IO_HANDLE_PRIVATE_H_ #define MSP_IO_HANDLE_PRIVATE_H_ -#ifdef WIN32 -#include -#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