00001 /* 00002 * Copyright (C) 2009, Edmundo Albuquerque de Souza e Silva. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 * Thanks: Jose Renato Santos 00017 * 00018 */ 00019 00020 /////////////////////////////////////////////////////////////////////////////// 00021 // RioUnix.h: General types not available in standard UNIX C++ 00022 /////////////////////////////////////////////////////////////////////////////// 00023 00024 #if !defined __RIOUNIX_H_ 00025 #define __RIOUNIX_H_ 00026 00027 typedef void VOID; 00028 00029 #ifndef WINDOWS 00030 typedef long long int __int64; 00031 #endif 00032 /* --------------------------- */ 00033 00034 typedef int HRESULT; 00035 00036 const HRESULT S_OK = 0; 00037 #define FAILED(Status) ((HRESULT) Status < 0) 00038 00039 /* SOCKET definitions */ 00040 typedef int SOCKET; 00041 const SOCKET INVALID_SOCKET = -1; 00042 const SOCKET SOCKET_ERROR = -1; 00043 typedef struct sockaddr_in SOCKADDR_IN; 00044 typedef struct sockaddr SOCKADDR; 00045 00046 #endif /* __RIOUNIX_H_ */