#ifndef CBDUTIL_H #define CBDUTIL_H /* * Platform specific macros that affect system headers */ #ifdef linux #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif #endif /* * Include and define all the basic things that would normally be * expected to be available on the current platform. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static inline void __attribute__((noreturn)) error(const char* fmt, ...) { va_list ap; va_start(ap, fmt); vfprintf(stderr, fmt, ap); exit(EXIT_FAILURE); } #endif