Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: net/tools/balsa/balsa_enums.h

Issue 312003002: Port net/tools/balsa to non-Linux platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compiler warnings Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « net/net.gypi ('k') | net/tools/balsa/balsa_frame.h » ('j') | net/tools/balsa/balsa_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698