X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=59dc5d20a10e5e1d02b288c200f81925b44fe204;hb=fea74b37952faf5e8610c4c34d6085b9f988c64d;hp=282e632520ce08cb1a755588c251a10f53aa4e24;hpb=63cbff115ba03717e81087d1419fc07c24d205c2;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 282e6325..59dc5d20 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -122,6 +122,24 @@ # endif /* !defined(isnan) */ #endif /* NAN_ZERO_ZERO */ +#if HAVE_ENDIAN_H +# include +#endif + +#ifndef BYTE_ORDER +# ifdef __BYTE_ORDER +# define BYTE_ORDER __BYTE_ORDER +# endif +#endif +#ifndef BIG_ENDIAN +# ifdef __BIG_ENDIAN +# define BIG_ENDIAN __BIG_ENDIAN +# endif +#endif +#if !defined(BYTE_ORDER) || !defined(BIG_ENDIAN) +# error "Cannot determine byte order" +#endif + #if HAVE_DIRENT_H # include # define NAMLEN(dirent) strlen((dirent)->d_name) @@ -153,9 +171,6 @@ # include #endif -#if HAVE_RRD_H -# include -#endif #if HAVE_PTH_H # include #endif @@ -198,11 +213,6 @@ #define PLUGINDIR PREFIX "/lib/" PACKAGE_NAME #endif -#define MODE_SERVER 0x01 -#define MODE_CLIENT 0x02 -#define MODE_LOCAL 0x04 -#define MODE_LOG 0x08 - #ifndef COLLECTD_GRP_NAME # define COLLECTD_GRP_NAME "collectd" #endif