diff --git a/include/common/compat.h b/include/common/compat.h index 35782dee2..07b3666e3 100644 --- a/include/common/compat.h +++ b/include/common/compat.h @@ -33,6 +33,12 @@ #include #include +/* set any optional field in a struct to this type to save ifdefs. Its address + * will still be valid but it will not reserve any room nor require any + * initialization. + */ +typedef struct { } empty_t; + // Redefine some limits that are not present everywhere #ifndef LLONG_MAX # define LLONG_MAX 9223372036854775807LL