2023-03-12 19:49:58 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
2020-10-19 14:28:41 +02:00
|
|
|
|
2023-03-12 19:49:58 +01:00
|
|
|
#pragma once
|
2020-10-19 14:28:41 +02:00
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
/* ERROR is a WIN32 macro that poisons our namespace; this is a kludge
|
|
|
|
to allow us to use it anyway */
|
|
|
|
#ifdef ERROR
|
|
|
|
#undef ERROR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct WinSelectEvents {
|
|
|
|
static constexpr unsigned READ = 1;
|
|
|
|
static constexpr unsigned WRITE = 2;
|
|
|
|
static constexpr unsigned ERROR = 0;
|
|
|
|
static constexpr unsigned HANGUP = 0;
|
|
|
|
};
|