diff --git a/include/re_types.h b/include/re_types.h index f43cd4e..310a869 100644 --- a/include/re_types.h +++ b/include/re_types.h @@ -122,6 +122,8 @@ typedef bool _Bool; #undef MAX #define MAX(a,b) (((a)>(b)) ? (a) : (b)) +#ifndef __cplusplus + /** Get the minimal value */ #undef min #define min(x,y) MIN(x, y) @@ -130,6 +132,8 @@ typedef bool _Bool; #undef max #define max(x,y) MAX(x, y) +#endif + /** Defines a soft breakpoint */ #if (defined(__i386__) || defined(__x86_64__)) && !defined(__SYMBIAN32__) #define BREAKPOINT __asm__("int $0x03")