diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/fhandle.h | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/fhandle.h')
-rw-r--r-- | util/system/fhandle.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/fhandle.h b/util/system/fhandle.h index f8033e3c14..3290839f87 100644 --- a/util/system/fhandle.h +++ b/util/system/fhandle.h @@ -2,26 +2,26 @@ #include "defaults.h" -using WIN_HANDLE = void*; -#define INVALID_WIN_HANDLE ((WIN_HANDLE)(long)-1) - -using UNIX_HANDLE = int; -#define INVALID_UNIX_HANDLE -1 - +using WIN_HANDLE = void*; +#define INVALID_WIN_HANDLE ((WIN_HANDLE)(long)-1) + +using UNIX_HANDLE = int; +#define INVALID_UNIX_HANDLE -1 + #if defined(_win_) -using FHANDLE = WIN_HANDLE; - #define INVALID_FHANDLE INVALID_WIN_HANDLE +using FHANDLE = WIN_HANDLE; + #define INVALID_FHANDLE INVALID_WIN_HANDLE #elif defined(_unix_) -using FHANDLE = UNIX_HANDLE; - #define INVALID_FHANDLE INVALID_UNIX_HANDLE -#else - #error -#endif - -#if defined(_cygwin_) -using OS_HANDLE = WIN_HANDLE; - #define INVALID_OS_HANDLE INVALID_WIN_HANDLE +using FHANDLE = UNIX_HANDLE; + #define INVALID_FHANDLE INVALID_UNIX_HANDLE #else -using OS_HANDLE = FHANDLE; - #define INVALID_OS_HANDLE INVALID_FHANDLE + #error #endif + +#if defined(_cygwin_) +using OS_HANDLE = WIN_HANDLE; + #define INVALID_OS_HANDLE INVALID_WIN_HANDLE +#else +using OS_HANDLE = FHANDLE; + #define INVALID_OS_HANDLE INVALID_FHANDLE +#endif |