summaryrefslogtreecommitdiff
path: root/lib/lanplus/inc/inttypes-win.h
blob: a049a3c38b3a3d2be3ee6105b83e2c95e852b50a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * inttypes.h
 * 
 */
#ifdef WIN32

#ifndef INTTYPES_WIN
#define INTTYPES_WIN
typedef unsigned char   uint8_t;
typedef unsigned short  uint16_t;
typedef unsigned int    uint32_t;
/*
#if __WORDSIZE == 64
typedef unsigned long int   uint64_t; 
#else
typedef unsigned long long  uint64_t;
#endif
*/
typedef uint32_t   socklen_t;

#ifndef __attribute__
#define __attribute__(Spec) /*empty*/
#endif
#endif

#else  
/* Linux */
#include <inttypes.h>
#endif
/* end of inttypes.h */