diff options
-rw-r--r-- | base/basictypes.h | 8 | ||||
-rw-r--r-- | sdch/README.chromium | 4 | ||||
-rw-r--r-- | sdch/sdch.gyp | 2 | ||||
-rw-r--r-- | sdch/win/config.h | 14 |
4 files changed, 19 insertions, 9 deletions
diff --git a/base/basictypes.h b/base/basictypes.h index 842d784..cdd127e 100644 --- a/base/basictypes.h +++ b/base/basictypes.h @@ -13,16 +13,8 @@ #include "base/compiler_specific.h" #include "base/port.h" // Types that only need exist on certain systems. -// TODO(vtl): We get conflicts with other definitions of |int8|/|uint8| if we -// try to define them as |int8_t|/|uint8_t|, at least on Windows. -#ifdef _MSC_VER -typedef signed char int8; -typedef unsigned char uint8; -#else typedef int8_t int8; typedef uint8_t uint8; -#endif - typedef int16_t int16; typedef int32_t int32; typedef uint16_t uint16; diff --git a/sdch/README.chromium b/sdch/README.chromium index 0275c7a..93ae6a0 100644 --- a/sdch/README.chromium +++ b/sdch/README.chromium @@ -13,3 +13,7 @@ The ios directory contains a config.h generated from a run of configure CPPFLAGS=-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x c++ -arch armv6 CXXFLAGS=-mno-thumb -miphoneos-version-min=4.2 + +The win directory contains a config.h that forwards to one provided with +open-vcdiff. We have this to avoid putting open-vcdiff's minimal stdint.h hack +into our include path. diff --git a/sdch/sdch.gyp b/sdch/sdch.gyp index 8d609d5..2e74aa5 100644 --- a/sdch/sdch.gyp +++ b/sdch/sdch.gyp @@ -57,7 +57,7 @@ [ 'os_bsd==1 or OS=="solaris"', { 'include_dirs': [ 'bsd' ] } ], [ 'OS == "ios"', { 'include_dirs': [ 'ios' ] } ], [ 'OS == "mac"', { 'include_dirs': [ 'mac' ] } ], - [ 'OS == "win"', { 'include_dirs': [ 'open-vcdiff/vsprojects' ] } ], + [ 'OS == "win"', { 'include_dirs': [ 'win' ] } ], # TODO(mark): Remove usage of the deprecated auto_ptr. [ 'clang == 1', { 'cflags': [ '-Wno-deprecated-declarations' ] } ], ], diff --git a/sdch/win/config.h b/sdch/win/config.h new file mode 100644 index 0000000..b5fb37c --- /dev/null +++ b/sdch/win/config.h @@ -0,0 +1,14 @@ +// Copyright 2014 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. + +// This file and directory exist so that we can use the provided config.h +// without putting vsprojects into our include path (which would also give us an +// incorrect/incompatible stdint.h). + +#ifndef SDCH_WIN_CONFIG_H_ +#define SDCH_WIN_CONFIG_H_ + +#include "../open-vcdiff/vsprojects/config.h" + +#endif // SDCH_WIN_CONFIG_H_ |