3
Copyright (C) 2005, 2006, 2007 John W. Eaton
5
This file is part of Octave.
7
Octave is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 3 of the License, or (at your
10
option) any later version.
12
Octave is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<http://www.gnu.org/licenses/>.
23
#if !defined (octave_oct_types_h)
24
#define octave_oct_types_h 1
26
typedef int octave_idx_type;
28
#if defined (HAVE_STDINT_H)
30
#elif defined (HAVE_INTTYPES_H)
34
#if defined (HAVE_LIMITS_H)
39
typedef signed char int8_t;
40
typedef unsigned char uint8_t;
42
#error "CHAR_BIT is not 8!"
46
typedef short int16_t;
47
typedef unsigned short uint16_t;
50
typedef unsigned long uint16_t;
52
#error "No 2 byte integer type found!"
57
typedef unsigned int uint32_t;
58
#elif SIZEOF_LONG == 4
60
typedef unsigned long uint32_t;
62
#error "No 4 byte integer type found!"
67
typedef unsigned long uint64_t;
68
#elif SIZEOF_LONG_LONG == 8
69
typedef long long int64_t;
70
typedef unsigned long long uint64_t;
78
;;; Local Variables: ***