X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fdropin.h;h=f161c13d2f5b3da898317e39a626b73d76112301;hb=668750c022a02cc54756316907f1cbbf7d673025;hp=a1fb6c1b062e82ba57b400f888af8bf2211f9764;hpb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;p=tinc diff --git a/src/dropin.h b/src/dropin.h index a1fb6c1b..f161c13d 100644 --- a/src/dropin.h +++ b/src/dropin.h @@ -71,14 +71,14 @@ extern int gettimeofday(struct timeval *, void *); #define MAX(a,b) (((a)>(b))?(a):(b)) #endif -#ifdef _MSC_VER +#define CLAMP(val, min, max) MIN((max), MAX((min), (val))) -#define __attribute(args) -#define __attribute__(args) +#ifdef _MSC_VER #define PATH_MAX MAX_PATH #define strcasecmp _stricmp #define strncasecmp _strnicmp +#define close CloseHandle #define __const const typedef int mode_t;