X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8de330a38717f8f808e8aa88a5f4391c310e7fd6..cd957c70c442847c67887343c37b906310269570:/rsync.h diff --git a/rsync.h b/rsync.h index dc58e691..7485e5d4 100644 --- a/rsync.h +++ b/rsync.h @@ -227,6 +227,7 @@ #else /* I hope this works */ #define int32 int +#define LARGE_INT32 #endif #endif @@ -455,3 +456,17 @@ extern int errno; #ifndef ACCESSPERMS #define ACCESSPERMS 0777 #endif + +/* handler for null strings in printf format */ +#define NS(s) ((s)?(s):"") + +/* use magic gcc attributes to catch format errors */ + void rprintf(int , const char *, ...) +#ifdef __GNUC__ + __attribute__ ((format (printf, 2, 3))) +#endif +; + +#ifdef REPLACE_INET_NTOA +#define inet_ntoa rep_inet_ntoa +#endif