1 /* 2 * Copyright (C) 2001, 2002, and 2003 Roy Keene 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * email: dact@rkeene.org 19 */ 20 21 #ifndef _STDINT_H 22 #define _STDINT_H 23 24 #include "config.h" 25 26 #ifndef uint32_t 27 28 #if SIZEOF_INT == 4 29 #define uint32_t unsigned int 30 #define int32_t int 31 #elif SIZEOF_SHORT == 4 32 #define uint32_t unsigned short 33 #define int32_t short 34 #elif SIZEOF_LONG == 4 35 #define uint32_t unsigned long 36 #define int32_t long 37 #endif 38 39 #endif/* !uint32_t */ 40 41 #ifndef uint16_t 42 43 #if SIZEOF_INT == 2 44 #define uint16_t unsigned int 45 #define int16_t int 46 #elif SIZEOF_SHORT == 2 47 #define uint16_t unsigned short 48 #define int16_t short 49 #elif SIZEOF_LONG == 2 50 #define uint16_t unsigned long 51 #define int16_t long 52 #endif 53 54 #endif/* !uint16_t */ 55 56 57 #endif/*_STDINT_H*/ |