X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fglobals.h;h=9ec72f0de1a770155682167e790926bd5fb39f6e;hp=bc11d6bfdf9e4013d962baa6a09651318cae20ff;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=9c6c1bdb92537f307d245c52349d3f196ec4d33d diff --git a/src/daemon/globals.h b/src/daemon/globals.h index bc11d6bf..9ec72f0d 100644 --- a/src/daemon/globals.h +++ b/src/daemon/globals.h @@ -30,6 +30,14 @@ #define DATA_MAX_NAME_LEN 128 #endif +#ifndef PRIsz +#ifdef WIN32 +#define PRIsz "Iu" +#else +#define PRIsz "zu" +#endif /* WIN32 */ +#endif /* !PRIsz */ + /* Type for time as used by "utils_time.h" */ typedef uint64_t cdtime_t;