From b58621c68390e13af61369c01fd5ba515c4566db Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sat, 11 Apr 2015 10:58:08 +0000 Subject: [PATCH] Add ERROR_DIRECTORY_NOT_SUPPORTED define missing in MinGW --- libtransmission/error-types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libtransmission/error-types.h b/libtransmission/error-types.h index 476a8d49c..d03ee50c8 100644 --- a/libtransmission/error-types.h +++ b/libtransmission/error-types.h @@ -14,6 +14,11 @@ #include +/* MinGW :( */ +#ifndef ERROR_DIRECTORY_NOT_SUPPORTED + #define ERROR_DIRECTORY_NOT_SUPPORTED 336 +#endif + #define TR_ERROR_IS_ENOENT(code) ((code) == ERROR_FILE_NOT_FOUND || \ (code) == ERROR_PATH_NOT_FOUND) #define TR_ERROR_IS_ENOSPC(code) ((code) == ERROR_DISK_FULL)