diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-09-09 20:01:33 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 20:01:33 +0300 |
| commit | a4f1102782889367d51c8b298269b232caac1db3 (patch) | |
| tree | bd824f8f5b15e0a084f6cdbce39b69a40ab34978 /accel-pppd/utils.h | |
| parent | c414f0a725a16cbd4c7063ff221dabb420b96df5 (diff) | |
| parent | 78d75b1dcf0d42e6ad5ce8b7203a19e17b9c87dc (diff) | |
| download | accel-ppp-a4f1102782889367d51c8b298269b232caac1db3.tar.gz accel-ppp-a4f1102782889367d51c8b298269b232caac1db3.zip | |
Merge pull request #357 from nuclearcat/fix-centralize-max
utils: centralize max macro
Diffstat (limited to 'accel-pppd/utils.h')
| -rw-r--r-- | accel-pppd/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/utils.h b/accel-pppd/utils.h index 7c62422c..6c03299f 100644 --- a/accel-pppd/utils.h +++ b/accel-pppd/utils.h @@ -10,6 +10,10 @@ #define min(x, y) ((x) < (y) ? (x) : (y)) #endif +#ifndef max +#define max(x, y) ((x) > (y) ? (x) : (y)) +#endif + /* * Fixed-size memcpy() lets the compiler emit efficient unaligned accesses on * architectures that support them without imposing alignment or aliasing |
