From 40e06db3a8377a94c8d4d74d08ff5f72b098f815 Mon Sep 17 00:00:00 2001
From: Cheng Zhao <zcbenz@gmail.com>
Date: Tue, 2 Jul 2013 18:47:51 +0800
Subject: [PATCH] Use the platform_util_win implementation from Chromium.

---
 atom.gyp    | 3 ++-
 common.gypi | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/atom.gyp b/atom.gyp
index 11ca0cef1..9fbf8bf19 100644
--- a/atom.gyp
+++ b/atom.gyp
@@ -121,8 +121,9 @@
       'common/node_bindings_mac.mm',
       'common/options_switches.cc',
       'common/options_switches.h',
-      'common/platform_util_mac.mm',
       'common/platform_util.h',
+      'common/platform_util_mac.mm',
+      'common/platform_util_win.cc',
       'common/v8_value_converter_impl.cc',
       'common/v8_value_converter_impl.h',
       'renderer/api/atom_api_renderer_ipc.cc',
diff --git a/common.gypi b/common.gypi
index 8efe92b4b..d36fb3fd3 100644
--- a/common.gypi
+++ b/common.gypi
@@ -61,6 +61,7 @@
     'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.
     'msvs_disabled_warnings': [
       4005,  # (node.h) macro redefinition
+      4189,  # local variable is initialized but not referenced
       4201,  # (uv.h) nameless struct/union
       4800,  # (v8.h) forcing value to bool 'true' or 'false'
       4819,  # The file contains a character that cannot be represented in the current code page