diff --git a/src/tpm2/MinMax.h b/src/tpm2/MinMax.h index 00d631e3..5702f565 100644 --- a/src/tpm2/MinMax.h +++ b/src/tpm2/MinMax.h @@ -60,7 +60,7 @@ #ifndef _MIN_MAX_H_ -//#define _MIN_MAX_H_ +#define _MIN_MAX_H_ #ifndef MAX # define MAX(a, b) ((a) > (b) ? (a) : (b)) @@ -68,5 +68,10 @@ #ifndef MIN # define MIN(a, b) ((a) < (b) ? (a) : (b)) #endif + +#ifndef SIZEOF_MEMBER +# define SIZEOF_MEMBER(type, member) sizeof(((type*)0)->member) +#endif + #endif // _MIN_MAX_H_