@@ -108,7 +108,6 @@ class Store final : public MemoryRetainer {
|
108 | 108 | |
109 | 109 | // Periodically, these need to be updated to match the latest ngtcp2 defs. |
110 | 110 | #define QUIC_TRANSPORT_ERRORS(V) \ |
111 | | -V(NO_ERROR) \ |
112 | 111 | V(INTERNAL_ERROR) \ |
113 | 112 | V(CONNECTION_REFUSED) \ |
114 | 113 | V(FLOW_CONTROL_ERROR) \ |
@@ -155,6 +154,10 @@ class QuicError final : public MemoryRetainer {
|
155 | 154 | public: |
156 | 155 | // The known error codes for the transport namespace. |
157 | 156 | enum class TransportError : error_code { |
| 157 | +// NO_ERROR has to be treated specially since it is a macro on |
| 158 | +// some Windows cases and results in a compile error if we leave |
| 159 | +// it as is. |
| 160 | + NO_ERROR_ = NGTCP2_NO_ERROR, |
158 | 161 | #define V(name) name = NGTCP2_##name, |
159 | 162 | QUIC_TRANSPORT_ERRORS(V) |
160 | 163 | #undef V |
@@ -273,6 +276,7 @@ class QuicError final : public MemoryRetainer {
|
273 | 276 | |
274 | 277 | static const QuicError FromConnectionClose(ngtcp2_conn* session); |
275 | 278 | |
| 279 | +static const QuicError TRANSPORT_NO_ERROR; |
276 | 280 | #define V(name) static const QuicError TRANSPORT_##name; |
277 | 281 | QUIC_TRANSPORT_ERRORS(V) |
278 | 282 | #undef V |
|