#ifndef FRT_DEFINES_H
#define FRT_DEFINES_H

#include <sys/types.h>
#include "posh.h"

#ifndef false
#define false 0
#endif
#ifndef true
#define true  1
#endif

typedef unsigned int        bool;
typedef unsigned char       uchar;

typedef posh_u16_t f_u16;
typedef posh_i16_t f_i16;
typedef posh_u32_t f_u32;
typedef posh_i32_t f_i32;
typedef posh_u64_t f_u64;
typedef posh_i64_t f_i64;

#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
#define F_OFF_T_PFX "ll"
#else
#define F_OFF_T_PFX "l"
#endif

#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
#define FRT_IS_C99
#define FRT_HAS_ISO_VARARGS
#define FRT_HAS_VARARGS
#endif

#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define FRT_HAS_GNUC_VARARGS
#define FRT_HAS_VARARGS
#endif

#endif
