re_types: don't define min/max when using C++

This commit is contained in:
Richard Aas 2014-05-15 08:17:32 +00:00
parent 2ca28e292b
commit d7f720ad21

View file

@ -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")