8822bb14 |
/* |
2023340a |
* Copyright (C) 2007-2008 Sourcefire, Inc. |
8822bb14 |
* |
2023340a |
* Authors: Tomasz Kojm |
8822bb14 |
*
* This program is free software; you can redistribute it and/or modify |
bb34cb31 |
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. |
8822bb14 |
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software |
48b7b4a7 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA. |
8822bb14 |
*/
#ifndef __CLTYPES_H
#define __CLTYPES_H
|
6d6e8271 |
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
|
1266e3e0 |
#ifdef HAVE_SYS_INT_TYPES_H
/* First to give it higher priority on Solaris */ |
8822bb14 |
#include <sys/int_types.h> |
1266e3e0 |
#elif defined(HAVE_INTTYPES_H)
/* C99: inttypes.h should include stdint.h; more universal because some
* older platforms don't provide stdint.h
*/ |
8822bb14 |
#include <inttypes.h> |
1266e3e0 |
#elif defined(HAVE_STDINT_H)
#include <stdint.h> |
8822bb14 |
#else |
1266e3e0 |
typedef signed char int8_t;
typedef unsigned char uint8_t; |
8822bb14 |
|
1266e3e0 |
#if SIZEOF_INT == 2
typedef signed int int16_t;
typedef unsigned int uint16_t;
#elif SIZEOF_SHORT == 2
typedef signed short int16_t;
typedef unsigned short uint16_t;
#endif |
e7fe9178 |
|
1266e3e0 |
#if SIZEOF_INT == 4
typedef signed int int32_t;
typedef unsigned int uint32_t;
#elif SIZEOF_LONG == 4
typedef signed long int32_t;
typedef unsigned long uint32_t;
#endif |
e7fe9178 |
|
1266e3e0 |
#if SIZEOF_LONG == 8
typedef signed long int64_t;
typedef unsigned long uint64_t;
#elif SIZEOF_LONG_LONG == 8
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#endif |
8822bb14 |
#endif
#endif |