2003-03-25 07:05:43 -06:00
|
|
|
/* RCS $Id: itypes.h,v 1.2 2003-03-25 14:02:12 hr Exp $
|
2000-09-22 09:33:37 -05:00
|
|
|
--
|
|
|
|
-- 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
|
|
|
|
|
2003-03-25 07:05:43 -06:00
|
|
|
typedef unsigned char uint8;
|
|
|
|
typedef signed char int8;
|
|
|
|
#if SIZEOF_SHORT == 2
|
2000-09-22 09:33:37 -05:00
|
|
|
typedef unsigned short uint16;
|
2003-03-25 07:05:43 -06:00
|
|
|
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."
|
2000-09-22 09:33:37 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|