Backout changeset 9c78c5ac85a8 (bug 907683) for Android bustage

This commit is contained in:
Mike Hommey 2013-09-06 10:10:51 +09:00
parent 6156da846f
commit 8894eba6a2
2 changed files with 67 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#include "nsXULAppAPI.h"
// FIXME/cjones testing
#if !defined(XP_WIN)
#if !defined(OS_WIN)
#include <unistd.h>
#endif

View File

@ -23,6 +23,8 @@ LOCAL_INCLUDES += \
ifeq ($(OS_ARCH),WINNT) # {
OS_LIBS += $(call EXPAND_LIBNAME,psapi shell32 dbghelp)
OS_WIN = 1
DEFINES += \
-DUNICODE \
-D_UNICODE \
@ -32,6 +34,7 @@ DEFINES += \
-D_SECURE_ATL \
-DCHROMIUM_BUILD \
-DU_STATIC_IMPLEMENTATION \
-DOS_WIN=1 \
-DWIN32 \
-D_WIN32 \
-D_WINDOWS \
@ -43,11 +46,73 @@ DEFINES += -DCOMPILER_MSVC
endif
else # } {
OS_POSIX = 1
DEFINES += -DOS_POSIX=1
ifneq (,$(filter $(OS_ARCH),FreeBSD DragonFly NetBSD OpenBSD)) # {
ifeq ($(OS_ARCH),Darwin) # {
OS_MACOSX = 1
DEFINES += \
-DOS_MACOSX=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),DragonFly) # {
OS_DRAGONFLY = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_DRAGONFLY=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
ifneq (,$(filter $(OS_ARCH),FreeBSD GNU_kFreeBSD)) # {
OS_FREEBSD = 1
OS_BSD = 1
ifneq ($(OS_ARCH),GNU_kFreeBSD)
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
endif
DEFINES += \
-DOS_FREEBSD=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),NetBSD) # {
OS_NETBSD = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_NETBSD=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),OpenBSD) # {
OS_OPENBSD = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_OPENBSD=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
OS_LINUX = 1
DEFINES += \
-DOS_LINUX=1 \
$(NULL)
endif # }
endif # }
endif # }
endif # }
endif # }
endif # }