diff options
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) |