absence_thelab

diff src/common/typedefs.h @ 0:1cffe3409164

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Oct 2014 01:46:07 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/common/typedefs.h	Thu Oct 23 01:46:07 2014 +0300
     1.3 @@ -0,0 +1,38 @@
     1.4 +#ifndef _TYPEDEFS_H_
     1.5 +#define _TYPEDEFS_H_
     1.6 +
     1.7 +typedef char int8;
     1.8 +typedef short int16;
     1.9 +typedef long int32;
    1.10 +
    1.11 +typedef unsigned char uint8;
    1.12 +typedef unsigned short uint16;
    1.13 +typedef unsigned long uint32;
    1.14 +
    1.15 +#ifdef _MSC_VER
    1.16 +typedef __int64 int64;
    1.17 +typedef unsigned __int64 uint64;
    1.18 +#else
    1.19 +typedef unsigned long long uint64;
    1.20 +typedef long long int64;
    1.21 +#endif	// _MSC_VER
    1.22 +
    1.23 +typedef uint8	BYTE;
    1.24 +typedef uint16	WORD;
    1.25 +typedef uint32	DWORD;
    1.26 +
    1.27 +typedef uint8	byte;
    1.28 +typedef uint16	word;
    1.29 +typedef uint32	dword;
    1.30 +typedef uint64	qword;
    1.31 +
    1.32 +// Define NULL pointer value 
    1.33 +#ifndef NULL
    1.34 +#ifdef  __cplusplus
    1.35 +#define NULL    0
    1.36 +#else
    1.37 +#define NULL    ((void *)0)
    1.38 +#endif	//__cplusplus
    1.39 +#endif	//NULL
    1.40 +
    1.41 +#endif	//_TYPEDEFS_H_