ENUt

nuttypes_win.h

00001 /*
00002     
00003   This file is a part of ENUt, a library containing network
00004   programming utilities.
00005   
00006   Copyright (C) 2006-2008  Hasselt University - Expertise Centre for
00007                       Digital Media (EDM) (http://www.edm.uhasselt.be)
00008 
00009   This library is free software; you can redistribute it and/or
00010   modify it under the terms of the GNU Lesser General Public
00011   License as published by the Free Software Foundation; either
00012   version 2.1 of the License, or (at your option) any later version.
00013 
00014   This library is distributed in the hope that it will be useful,
00015   but WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017   Lesser General Public License for more details.
00018 
00019   You should have received a copy of the GNU Lesser General Public
00020   License along with this library; if not, write to the Free Software
00021   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  
00022   USA
00023 
00024 */
00025 
00026 #ifndef NUTTYPES_WIN_H
00027 
00028 #define NUTTYPES_WIN_H
00029 
00030 #include <winsock2.h>   
00031 #include <ws2tcpip.h>
00032 #ifndef _WIN32_WCE
00033         #include <sys/types.h>
00034 #endif // _WIN32_WCE
00035 
00036 #ifndef INTTYPES_DEFINED
00037 
00038 #define INTTYPES_DEFINED
00039 
00040 typedef char int8_t;
00041 typedef unsigned char uint8_t;
00042 typedef short int16_t;
00043 typedef unsigned short uint16_t;
00044 typedef int int32_t;
00045 typedef unsigned int uint32_t;
00046 typedef __int64 int64_t;
00047 typedef unsigned __int64 uint64_t;
00048 
00049 #endif // INTTYPES_DEFINED
00050 
00051 #endif // NUTTYPES_WIN_H