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 28typedef int8_t int8; 29typedef int16_t int16; 30typedef int32_t int32; 31typedef int64_t int64; 32 33typedef uint8_t uint8; 34typedef uint16_t uint16; 35typedef uint32_t uint32; 36typedef uint64_t uint64; 37 38#endif // FST_LIB_TYPES_H__ 39