Skip to content

Commit

Permalink
eclair snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste Queru committed Nov 13, 2009
1 parent 1be2c9d commit 6a1eb13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions include/gtest/internal/gtest-port.h
Expand Up @@ -65,6 +65,7 @@
//
// Macros indicating the current platform (defined to 1 if compiled on
// the given platform; otherwise undefined):
// GTEST_OS_ANDROID - Android
// GTEST_OS_CYGWIN - Cygwin
// GTEST_OS_LINUX - Linux
// GTEST_OS_MAC - Mac OS X
Expand Down Expand Up @@ -177,6 +178,8 @@
#define GTEST_OS_WINDOWS 1
#elif defined __APPLE__
#define GTEST_OS_MAC 1
#elif defined ANDROID
#define GTEST_OS_ANDROID 1
#elif defined __linux__
#define GTEST_OS_LINUX 1
#elif defined __MVS__
Expand Down Expand Up @@ -250,10 +253,11 @@
// TODO(wan@google.com): uses autoconf to detect whether ::std::wstring
// is available.

#if GTEST_OS_CYGWIN || GTEST_OS_SOLARIS
#if GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || GTEST_OS_ANDROID
// Cygwin 1.5 and below doesn't support ::std::wstring.
// Cygwin 1.7 might add wstring support; this should be updated when clear.
// Solaris' libc++ doesn't support it either.
// Android does not support wstring and never will.
#define GTEST_HAS_STD_WSTRING 0
#else
#define GTEST_HAS_STD_WSTRING GTEST_HAS_STD_STRING
Expand Down Expand Up @@ -379,7 +383,7 @@
#if GTEST_HAS_STD_STRING && (GTEST_OS_LINUX || \
GTEST_OS_MAC || \
GTEST_OS_CYGWIN || \
(GTEST_OS_WINDOWS && _MSC_VER >= 1400))
(GTEST_OS_WINDOWS && _MSC_VER >= 1400)) && !GTEST_OS_ANDROID
#define GTEST_HAS_DEATH_TEST 1
#include <vector>
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/Android.mk
Expand Up @@ -41,7 +41,7 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../include


LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0
LOCAL_CFLAGS += -O0

LOCAL_MODULE := libgtest
LOCAL_MODULE_TAGS := tests
Expand All @@ -63,7 +63,7 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../include

LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0
LOCAL_CFLAGS += -O0

LOCAL_STATIC_LIBRARIES := libgtest

Expand Down
2 changes: 1 addition & 1 deletion test/Android.mk
Expand Up @@ -38,7 +38,7 @@ $(foreach file,$(1), \
endef

define host-test
$(call _define-test,$(1),HOST_,-DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0)
$(call _define-test,$(1),HOST_,-O0)
endef

# TODO: Figure out the right CFLAGS combination needed for bionic/astl.
Expand Down

0 comments on commit 6a1eb13

Please sign in to comment.