mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 02:34:00 +00:00
[all] move min/max and upcast macros into common/util.h
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "common/locking.h"
|
||||
#include "common/stringutils.h"
|
||||
#include "common/ivshmem.h"
|
||||
#include "common/util.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
@@ -37,9 +38,6 @@
|
||||
|
||||
#include <lgmp/client.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 state
|
||||
{
|
||||
bool running;
|
||||
|
Reference in New Issue
Block a user