mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 02:18:12 +00:00
[all] move min/max and upcast macros into common/util.h
This commit is contained in:
@@ -19,12 +19,10 @@
|
||||
*/
|
||||
|
||||
#include "common/rects.h"
|
||||
#include "common/util.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define min(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; })
|
||||
#define max(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a > _b ? _a : _b; })
|
||||
|
||||
struct Corner
|
||||
{
|
||||
int x;
|
||||
|
Reference in New Issue
Block a user