/** @file General C language utility macro. Copyright (C) 2018 Christian W. Zuckschwerdt This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ #ifndef INCLUDE_C_UTIL_H_ #define INCLUDE_C_UTIL_H_ // Helper macros, collides with MSVC's stdlib.h unless NOMINMAX is used #ifndef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif #ifndef MIN #define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif #endif /* INCLUDE_C_UTIL_H_ */