re_types: don't define min/max when using C++
This commit is contained in:
parent
2ca28e292b
commit
d7f720ad21
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue