Types.h

Go to the documentation of this file.
00001 #ifndef __LDK_TYPES_H__
00002 #define __LDK_TYPES_H__
00003 
00005 //   Copyright (C) 2003-2006 Lorien Dunn.
00006 //
00007 //   Contact: loriendunn AT users DOT sourceforge DOT net
00008 //
00009 //   This software is provided 'as-is', without any express or implied warranty.
00010 //   In no event will the authors be held liable for any damages arising from
00011 //   the use of this software.
00012 //
00013 //   Permission is granted to anyone to use this software for any purpose,
00014 //   including commercial applications, and to alter it and redistribute it
00015 //   freely, subject to the following restrictions:
00016 //
00017 //   1. The origin of this software must not be misrepresented; you must not
00018 //   claim that you wrote the original software. If you use this software in a
00019 //   product, an acknowledgment in the product documentation would be
00020 //   appreciated but is not required.
00021 //
00022 //   2. Altered source versions must be plainly marked as such, and must not be
00023 //   misrepresented as being the original software.
00024 //
00025 //   3. This notice may not be removed or altered from any source distribution.
00026 //
00028 
00040 #include "LDK/API.h"
00041 #ifndef _MSC_VER
00042 #include <stddef.h>
00043 #endif
00044 
00045 namespace LDK
00046 {
00047 
00048 #ifdef __GNUC__
00049 typedef long long int64; //need to test on 64 bit linux
00050 typedef unsigned long long uint64;
00051 #elif defined WIN32 //seems as though all windows compilers other than gcc use __int64
00052 typedef __int64 int64;
00053 typedef unsigned __int64 uint64;
00054 #endif
00055 
00056 typedef int int32;
00057 typedef unsigned int uint32;
00058 typedef short int16;
00059 typedef unsigned short uint16;
00060 typedef char int8;
00061 typedef unsigned char uint8;
00062 
00063 #ifndef NULL
00064 #define NULL 0
00065 #endif
00066 
00067 }//namespace LDK
00068 
00069 #endif //__LDK_TYPES_H__

Generated on Fri Aug 17 18:32:26 2007 for LDK by  doxygen 1.5.1