52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
/* RCS $Id: itypes.h,v 1.2 2003-03-25 14:02:12 hr Exp $
|
|
--
|
|
-- SYNOPSIS
|
|
-- Type declarations for common types
|
|
--
|
|
-- DESCRIPTION
|
|
-- portable type declarations.
|
|
--
|
|
-- AUTHOR
|
|
-- Dennis Vadura, dvadura@dmake.wticorp.com
|
|
--
|
|
-- WWW
|
|
-- http://dmake.wticorp.com/
|
|
--
|
|
-- COPYRIGHT
|
|
-- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
|
|
--
|
|
-- This program is NOT free software; you can redistribute it and/or
|
|
-- modify it under the terms of the Software License Agreement Provided
|
|
-- in the file <distribution-root>/readme/license.txt.
|
|
--
|
|
-- LOG
|
|
-- Use cvs log to obtain detailed change logs.
|
|
*/
|
|
|
|
|
|
#ifndef ITYPES_h
|
|
#define ITYPES_h
|
|
|
|
typedef unsigned char uint8;
|
|
typedef signed char int8;
|
|
#if SIZEOF_SHORT == 2
|
|
typedef unsigned short uint16;
|
|
typedef short int16;
|
|
#elif SIZEOF_INT == 2
|
|
typedef unsigned int uint16;
|
|
typedef int int16;
|
|
#else
|
|
#error "No 2 byte type, you lose."
|
|
#endif
|
|
#if SIZEOF_INT == 4
|
|
typedef unsigned int uint32;
|
|
typedef int int32;
|
|
#elif SIZEOF_LONG == 4
|
|
typedef unsigned long uint32;
|
|
typedef long int32;
|
|
#else
|
|
#error "No 4 byte type, you lose."
|
|
#endif
|
|
|
|
#endif
|
|
|