#ifndef __JLOG_CONFIG_H #define __JLOG_CONFIG_H /* define inline unless that is what the compiler already calls it. */ #undef inline #undef HAVE_FCNTL_H #undef HAVE_SYS_TYPES_H #undef HAVE_DIRENT_H #undef HAVE_ERRNO_H #undef HAVE_STRING_H #undef HAVE_STDLIB_H #undef HAVE_SYS_PARAM_H #undef HAVE_TIME_H #undef HAVE_SYS_STAT_H #define IFS_CH '/' #ifdef HAVE_STRING_H #include #endif #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif /* The number of bytes in a char. */ #undef SIZEOF_CHAR /* The number of bytes in a int. */ #undef SIZEOF_INT /* The number of bytes in a size_t. */ #undef SIZEOF_SIZE_T /* The number of bytes in a long int. */ #undef SIZEOF_LONG_INT /* The number of bytes in a long long int. */ #undef SIZEOF_LONG_LONG_INT /* The number of bytes in a short int. */ #undef SIZEOF_SHORT_INT /* The number of bytes in a void *. */ #undef SIZEOF_VOID_P #ifndef HAVE_U_INT typedef unsigned int u_int; #endif #undef HAVE_INTXX_T #ifndef HAVE_INTXX_T #if (SIZEOF_CHAR == 1) typedef char int8_t; #else #error "8 bit int type not found." #endif #if (SIZEOF_SHORT_INT == 2) typedef short int int16_t; #else #ifdef _CRAY typedef long int16_t; #else #warning "16 bit int type not found." #endif /* _CRAY */ #endif #if (SIZEOF_INT == 4) typedef int int32_t; #else #ifdef _CRAY typedef long int32_t; #else #error "32 bit int type not found." #endif /* _CRAY */ #endif #endif /* If sys/types.h does not supply u_intXX_t, supply them ourselves */ #ifndef HAVE_U_INTXX_T #ifdef HAVE_UINTXX_T typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; #define HAVE_U_INTXX_T 1 #else #if (SIZEOF_CHAR == 1) typedef unsigned char u_int8_t; #else #error "8 bit int type not found." #endif #if (SIZEOF_SHORT_INT == 2) typedef unsigned short int u_int16_t; #else #ifdef _CRAY typedef unsigned long u_int16_t; #else #warning "16 bit int type not found." #endif #endif #if (SIZEOF_INT == 4) typedef unsigned int u_int32_t; #else #ifdef _CRAY typedef unsigned long u_int32_t; #else #error "32 bit int type not found." #endif #endif #endif #endif /* 64-bit types */ #ifndef HAVE_INT64_T #if (SIZEOF_LONG_INT == 8) typedef long int int64_t; #define HAVE_INT64_T 1 #else #if (SIZEOF_LONG_LONG_INT == 8) typedef long long int int64_t; #define HAVE_INT64_T 1 #define HAVE_LONG_LONG_INT #endif #endif #endif #ifndef HAVE_U_INT64_T #if (SIZEOF_LONG_INT == 8) typedef unsigned long int u_int64_t; #define HAVE_U_INT64_T 1 #else #if (SIZEOF_LONG_LONG_INT == 8) typedef unsigned long long int u_int64_t; #define HAVE_U_INT64_T 1 #endif #endif #endif #endif