diff options
author | sr | 2013-07-17 13:57:54 +0200 |
---|---|---|
committer | sr | 2013-07-17 13:57:54 +0200 |
commit | 04f5acf26c68533b8d447d4a77be6be4191f27ad (patch) | |
tree | 58b6329787a871e67b702c7534cada595b388727 /src/types.h | |
parent | Replace all pthread_spin_* calls with spin_*, so that all locking can be trac... (diff) | |
download | dnbd3-04f5acf26c68533b8d447d4a77be6be4191f27ad.tar.gz dnbd3-04f5acf26c68533b8d447d4a77be6be4191f27ad.tar.xz dnbd3-04f5acf26c68533b8d447d4a77be6be4191f27ad.zip |
Remove all glib dependencies from server
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index a8d567d..810fbed 100644 --- a/src/types.h +++ b/src/types.h @@ -26,6 +26,20 @@ #include <stdint.h> #endif +#ifndef TRUE +#define TRUE (1) +#endif +#ifndef FALSE +#define FALSE (0) +#endif + +#ifndef MIN +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef MAX +#define MAX(a,b) ((a) > (b) ? (a) : (b)) +#endif + // ioctl #define DNBD3_MAGIC 'd' #define IOCTL_OPEN _IO(0xab, 1) |