diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-12 16:53:06 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-12 16:53:06 +0200 |
| commit | 1e38669119d4ce3e06bbad603799e32e6fd7feb2 (patch) | |
| tree | e787ac4dac41be1f8bcdbeab22c3bbee64f0d8b7 /src/fixer.h | |
| parent | 0aa9a623f3b38e35b7f1cd26da0237beca2c9988 (diff) | |
Replace max macro with std::max in C++ code
Fixes compilation on Guix with gcc 12. Not sure which of those is
relevant.
Diffstat (limited to 'src/fixer.h')
| -rw-r--r-- | src/fixer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fixer.h b/src/fixer.h index fff20c3..e239584 100644 --- a/src/fixer.h +++ b/src/fixer.h @@ -47,6 +47,7 @@ extern "C" { #define PACKED __attribute__((packed)) /* windows junk */ +#ifndef __cplusplus #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif @@ -54,6 +55,7 @@ extern "C" { #ifndef max #define max(a, b) (((a) > (b)) ? (a) : (b)) #endif +#endif #define __cdecl |
