// file : xsde/cxx/errno.ixx // author : Boris Kolpackov // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #include #ifdef XSDE_PLATFORM_WINCE # include // Get/SetLastError #else # include #endif namespace xsde { namespace cxx { #ifdef XSDE_PLATFORM_WINCE inline int get_errno () { return static_cast (GetLastError ()); } inline void set_errno (int e) { SetLastError (static_cast (e)); } #else inline int get_errno () { return errno; } inline void set_errno (int e) { errno = e; } #endif } }