aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fhandle.h
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/fhandle.h
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/fhandle.h')
-rw-r--r--util/system/fhandle.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/fhandle.h b/util/system/fhandle.h
index 2e012cca43..f8033e3c14 100644
--- a/util/system/fhandle.h
+++ b/util/system/fhandle.h
@@ -1,22 +1,22 @@
-#pragma once
-
-#include "defaults.h"
-
+#pragma once
+
+#include "defaults.h"
+
using WIN_HANDLE = void*;
#define INVALID_WIN_HANDLE ((WIN_HANDLE)(long)-1)
using UNIX_HANDLE = int;
#define INVALID_UNIX_HANDLE -1
-#if defined(_win_)
+#if defined(_win_)
using FHANDLE = WIN_HANDLE;
#define INVALID_FHANDLE INVALID_WIN_HANDLE
-#elif defined(_unix_)
+#elif defined(_unix_)
using FHANDLE = UNIX_HANDLE;
#define INVALID_FHANDLE INVALID_UNIX_HANDLE
-#else
+#else
#error
-#endif
+#endif
#if defined(_cygwin_)
using OS_HANDLE = WIN_HANDLE;