| Index: net/tools/balsa/balsa_enums.h
|
| diff --git a/net/tools/balsa/balsa_enums.h b/net/tools/balsa/balsa_enums.h
|
| index a59dcda687c92efc0d0f40c2ea65c5c8c0085966..2a49abada923b76d3f807c5bdca8f90bfd75d0d5 100644
|
| --- a/net/tools/balsa/balsa_enums.h
|
| +++ b/net/tools/balsa/balsa_enums.h
|
| @@ -24,6 +24,11 @@ struct BalsaFrameEnums {
|
| };
|
|
|
| enum ErrorCode {
|
| +#if defined(_WIN32)
|
| + // On Windows, <WinError.h> defines the NO_ERROR macro as 0L, which
|
| + // breaks the compilation of the "NO_ERROR = 0" line.
|
| +#undef NO_ERROR
|
| +#endif
|
| NO_ERROR = 0, // A sentinel value for convenience, none of the callbacks
|
| // should ever see this error code.
|
| // Header parsing errors
|
|
|