#ifndef AVM_COMMON_H #define AVM_COMMON_H 1 /* adapted from the autobook reference */ #ifdef __cplusplus extern "C" { #endif #if HAVE_CONFIG_H #include #endif #include #include #include #include #define _GNU_SOURCE #define _REENTRANT #if STDC_HEADERS # include #include #elif HAVE_STRINGS_H #include #endif /*STDC_HEADERS */ #if HAVE_UNISTD_H #include #endif #if HAVE_ERRNO_H #include #endif /*HAVE_ERRNO_H */ typedef uintmax_t counter; #ifndef errno /* Some systems #define this! */ #include extern int errno; #endif #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0 #define EXIT_FAILURE 1 #endif extern char *xstrerror (int errnum); #ifdef __cplusplus } #endif #endif /* AVM_COMMON_H */