diff options
Diffstat (limited to 'chromium/net/tools/balsa/balsa_enums.h')
-rw-r--r-- | chromium/net/tools/balsa/balsa_enums.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/net/tools/balsa/balsa_enums.h b/chromium/net/tools/balsa/balsa_enums.h index a59dcda687c..2a49abada92 100644 --- a/chromium/net/tools/balsa/balsa_enums.h +++ b/chromium/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 |