1 // types.h 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // 15 // Author: riley@google.com (Michael Riley) 16 // 17 // \file 18 // Various type definitions (mostly for Google compatibility). 19 20 #include <cstdlib> // for ssize_t 21 #include <stdint.h> // *int*_t 22 23 #include <fst/compat.h> // for DISALLOW_COPY_AND_ASSIGN 24 25 #ifndef FST_LIB_TYPES_H__ 26 #define FST_LIB_TYPES_H__ 27 28 typedef int8_t int8; 29 typedef int16_t int16; 30 typedef int32_t int32; 31 typedef int64_t int64; 32 33 typedef uint8_t uint8; 34 typedef uint16_t uint16; 35 typedef uint32_t uint32; 36 typedef uint64_t uint64; 37 38 #endif // FST_LIB_TYPES_H__ 39