cmd_config: replace action magic numbers with enum
[tinc] / src / dropin.h
index 9b196b6..384b4db 100644 (file)
@@ -52,7 +52,7 @@ extern int gettimeofday(struct timeval *, void *);
        } while (0)
 #endif
 
-#ifdef HAVE_MINGW
+#ifdef HAVE_WINDOWS
 #define mkdir(a, b) mkdir(a)
 #ifndef SHUT_RDWR
 #define SHUT_RDWR SD_BOTH
@@ -73,12 +73,10 @@ extern int gettimeofday(struct timeval *, void *);
 
 #ifdef _MSC_VER
 
-#define __attribute(args)
-#define __attribute__(args)
-
 #define PATH_MAX MAX_PATH
 #define strcasecmp _stricmp
 #define strncasecmp _strnicmp
+#define close CloseHandle
 #define __const const
 
 typedef int mode_t;