[Assorted-commits] SF.net SVN: assorted:[1502] cpp-commons/trunk/src/commons/win.h
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-11-06 01:34:12
|
Revision: 1502 http://assorted.svn.sourceforge.net/assorted/?rev=1502&view=rev Author: yangzhang Date: 2009-11-06 01:33:54 +0000 (Fri, 06 Nov 2009) Log Message: ----------- adopt boost's typedefs Modified Paths: -------------- cpp-commons/trunk/src/commons/win.h Modified: cpp-commons/trunk/src/commons/win.h =================================================================== --- cpp-commons/trunk/src/commons/win.h 2009-11-05 23:38:18 UTC (rev 1501) +++ cpp-commons/trunk/src/commons/win.h 2009-11-06 01:33:54 UTC (rev 1502) @@ -4,10 +4,17 @@ #ifdef WIN32 # define NONWIN(x) # define __attribute__(x) +#include <boost/cstdint.hpp> +using boost::int8_t; +using boost::int16_t; +using boost::int32_t; +using boost::int64_t; +using boost::uint8_t; +using boost::uint16_t; +using boost::uint32_t; +using boost::uint64_t; typedef HANDLE fd_t; int close(fd_t fd) { return CloseHandle(fd) ? 0 : -1; } -typedef UINT16 uint16_t; -typedef UINT32 uint32_t; void bzero(void *s, size_t n) { memset(s, 0, n); } #else # define NONWIN(x) x This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |