This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/goldlib/msgidlib/typedefs.h

49 lines
936 B
C
Raw Normal View History

2005-10-07 12:41:11 +00:00
/* Completely rewritten */
2003-03-26 16:12:22 +00:00
#ifndef __TYPEDEFS_H__
#define __TYPEDEFS_H__
2005-10-18 03:49:35 +00:00
#ifndef __goldall_h
#ifdef _MSC_VER
#include <windows.h>
#include <limits.h>
#if (UCHAR_MAX == 0xFF)
typedef signed char int8_t;
typedef unsigned char uint8_t;
#else
#error Don't know how to define 8 bit integers
#endif
#if (USHRT_MAX == 0xFFFF)
typedef signed short int16_t;
typedef unsigned short uint16_t;
#else
#error Don't know how to define 16 bit integers
#endif
#if (UINT_MAX == 0xFFFFFFFF)
typedef signed int int32_t;
typedef unsigned int uint32_t;
#else
#error Don't know how to define 32 bit integers
#endif
#else
2005-10-07 12:41:11 +00:00
#include <stdint.h>
2005-10-18 03:49:35 +00:00
#endif //#ifdef _MSC_VER
2003-03-26 16:12:22 +00:00
2005-10-18 03:49:35 +00:00
typedef uint8_t bit;
2003-03-26 16:12:22 +00:00
2005-10-18 03:49:35 +00:00
typedef int8_t sbyte;
typedef uint8_t byte;
2003-03-26 16:12:22 +00:00
2005-10-18 03:49:35 +00:00
typedef int16_t sword;
typedef uint16_t word;
typedef int16_t sshort;
typedef uint16_t ushort;
2003-03-26 16:12:22 +00:00
2005-10-18 03:49:35 +00:00
typedef uint32_t dword;
2003-03-26 16:12:22 +00:00
2005-10-18 03:49:35 +00:00
#endif //#ifndef __goldall_h
2003-03-26 16:12:22 +00:00
2005-10-18 03:49:35 +00:00
#endif //#ifndef __TYPEDEFS_H__