Commit 5895b202 authored by thakis@chromium.org's avatar thakis@chromium.org

Remove intsafe_workaround.h

It's no longer needed.

BUG=308740
R=scottmg@chromium.org
TBR=cpu

Review URL: https://codereview.chromium.org/404443003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284256 0039d316-1c4b-4281-b951-d872f2087c98
parent 2a103aed
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BUILD_INTSAFE_WORKAROUND_H_
#define BUILD_INTSAFE_WORKAROUND_H_
// Workaround for:
// http://connect.microsoft.com/VisualStudio/feedback/details/621653/
// http://crbug.com/225822
// Note that we can't actually include <stdint.h> here because there's other
// code in third_party that has partial versions of stdint types that conflict.
#include <intsafe.h>
#undef INT8_MIN
#undef INT16_MIN
#undef INT32_MIN
#undef INT64_MIN
#undef INT8_MAX
#undef UINT8_MAX
#undef INT16_MAX
#undef UINT16_MAX
#undef INT32_MAX
#undef UINT32_MAX
#undef INT64_MAX
#undef UINT64_MAX
#endif // BUILD_INTSAFE_WORKAROUND_H_
...@@ -106,5 +106,3 @@ ...@@ -106,5 +106,3 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "intsafe_workaround.h"
...@@ -65,7 +65,6 @@ static_library("sdch") { ...@@ -65,7 +65,6 @@ static_library("sdch") {
logging_file = rebase_path("logging_forward.h", root_build_dir) logging_file = rebase_path("logging_forward.h", root_build_dir)
if (is_win) { if (is_win) {
cflags = [ cflags = [
"/FI", rebase_path("//build/intsafe_workaround.h", root_build_dir),
"/FI", logging_file, "/FI", logging_file,
] ]
} else { } else {
......
...@@ -83,13 +83,9 @@ ...@@ -83,13 +83,9 @@
# ForcedIncludeFiles is relative to include_dirs, cflags relative to the # ForcedIncludeFiles is relative to include_dirs, cflags relative to the
# build directory. # build directory.
'xcode_settings': { 'GCC_PREFIX_HEADER': '<(logging_path)' }, 'xcode_settings': { 'GCC_PREFIX_HEADER': '<(logging_path)' },
'msvs_system_include_dirs': [
'<(DEPTH)/build',
],
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'ForcedIncludeFiles': [ 'ForcedIncludeFiles': [
'intsafe_workaround.h', # http://crbug.com/308740
'sdch/<(logging_path)', 'sdch/<(logging_path)',
] ]
} }
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "build/intsafe_workaround.h"
#include <atlbase.h> #include <atlbase.h>
#include <atlcom.h> #include <atlcom.h>
#include <atlctl.h> #include <atlctl.h>
......
...@@ -12,11 +12,6 @@ ...@@ -12,11 +12,6 @@
'../../build/win_precompile.gypi', '../../build/win_precompile.gypi',
], ],
'target_defaults': { 'target_defaults': {
# This and the force include below is a workaround for intsafe.h in
# VS 2010.
'msvs_system_include_dirs': [
'<(DEPTH)/build',
],
'msvs_settings': { 'msvs_settings': {
'VCLinkerTool': { 'VCLinkerTool': {
'AdditionalDependencies': [ 'AdditionalDependencies': [
...@@ -30,9 +25,6 @@ ...@@ -30,9 +25,6 @@
'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL', 'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL',
], ],
}, },
'VCCLCompilerTool': {
'ForcedIncludeFiles': [ 'intsafe_workaround.h', ],
},
}, },
}, },
'targets': [ 'targets': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment