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

Unified Diff: content/browser/gamepad/platform_data_fetcher_win.cc

Issue 10666046: Better fix for redefined FACILITY_VISUALCPP (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/app/hard_error_handler_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gamepad/platform_data_fetcher_win.cc
===================================================================
--- content/browser/gamepad/platform_data_fetcher_win.cc (revision 144100)
+++ content/browser/gamepad/platform_data_fetcher_win.cc (working copy)
@@ -8,10 +8,11 @@
#include "content/common/gamepad_messages.h"
#include "content/common/gamepad_hardware_buffer.h"
-#if _MSC_VER <= 1600
+#if defined(_WIN32_WINNT_WIN8)
+// The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h.
#undef FACILITY_VISUALCPP
+#endif
#include <delayimp.h>
-#endif
#pragma comment(lib, "delayimp.lib")
#pragma comment(lib, "xinput.lib")
« no previous file with comments | « chrome/app/hard_error_handler_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698