X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;fp=src%2Fcommon%2Fmacros.h;h=74f9096c7cf3b83fded3864bc76d0b0d1e0c5fb0;hp=7530c912a98251160b608e0bc0b4bf4daefff42e;hb=b66cbf1731486ab4dc7e0b2e1c3fa05cc5360c19;hpb=729c1fec5976af17fded2f026725a08ef1924290 diff --git a/src/common/macros.h b/src/common/macros.h index 7530c912a..74f9096c7 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -57,32 +57,6 @@ void *zmalloc(size_t len) }) #endif - -/* - * The min and max macros are not needed in C++ (std::min and std::max are - * preferred) and they conflict with some C++ header file. Don't define them - * when compiling C++ source. - */ -#ifndef __cplusplus - -# ifndef max -# define max(a, b) ((a) > (b) ? (a) : (b)) -# endif - -# ifndef min -# define min(a, b) ((a) < (b) ? (a) : (b)) -# endif - -# ifndef max_t -# define max_t(type, a, b) max((type) a, (type) b) -# endif - -# ifndef min_t -# define min_t(type, a, b) min((type) a, (type) b) -# endif - -#endif - #ifndef LTTNG_PACKED #define LTTNG_PACKED __attribute__((__packed__)) #endif