- Timestamp:
- Jul 16, 2007 12:06:30 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r3623 r3629 599 599 # Setup the global defines and includes. 600 600 # 601 ## @todo PATH_CURRENT has to go, fix the places where we rely on it. 601 # Note! The __SOMETHING__ #defines are deprecated as they violate the C/C++ specs. 602 # 602 603 INCS += $(PATH_ROOT)/include $(PATH_OUT) 603 604 DEFS += VBOX 604 605 DEFS.debug := DEBUG DEBUG_$(subst $(subst _, ,_),_,$(USERNAME)) DEBUG_USERNAME=$(subst $(subst _, ,_),_,$(USERNAME)) 605 606 DEFS.profile = VBOX_WITH_STATISTICS 606 DEFS.x86 = __X86__607 DEFS.amd64 = __AMD64__608 DEFS.darwin = __DARWIN__607 DEFS.x86 = RT_ARCH_X86 __X86__ 608 DEFS.amd64 = RT_ARCH_AMD64 __AMD64__ 609 DEFS.darwin = RT_OS_DARWIN __DARWIN__ 609 610 DEFS.darwin.x86 = VBOX_WITH_HYBIRD_32BIT_KERNEL 610 DEFS.freebsd = __FREEBSD__611 DEFS.l4 = __L4__ __L4ENV__ L4API_l4v2 ARCH_$(BUILD_TARGET_ARCH) __NO_CTYPE _FILE_OFFSET_BITS=64611 DEFS.freebsd = RT_OS_FREEBSD __FREEBSD__ 612 DEFS.l4 = RT_OS_L4 __L4__ __L4ENV__ L4API_l4v2 ARCH_$(BUILD_TARGET_ARCH) __NO_CTYPE _FILE_OFFSET_BITS=64 612 613 ifeq ($(L4_API),l4v2onv4) 613 614 DEFS.l4 += L4API_l4v2onv4 STATIC_L4_INLINE 614 615 endif 615 DEFS.linux = __LINUX__ _FILE_OFFSET_BITS=64616 DEFS.netbsd = __NETBSD__617 DEFS.openbsd = __OPENBSD__618 DEFS.os2 = __OS2__619 DEFS.solaris = __SOLARIS__620 DEFS.win = __WIN__616 DEFS.linux = RT_OS_LINUX __LINUX__ _FILE_OFFSET_BITS=64 617 DEFS.netbsd = RT_OS_NETBSD 618 DEFS.openbsd = RT_OS_OPENBSD 619 DEFS.os2 = RT_OS_OS2 __OS2__ 620 DEFS.solaris = RT_OS_SOLARIS 621 DEFS.win = RT_OS_WINDOWS __WIN__ 621 622 DEFS.win.x86 = __WIN32__ 622 623 DEFS.win.amd64 = __WIN64__ … … 2208 2209 ifdef VBOX_USE_VCC80 2209 2210 TEMPLATE_VBOXW32GUESTR0_TOOL = VCC80X86 2210 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS = -Zi -Zl -GR- -GS- -EHs-c- -GF- -Gz -U__LINUX__ - U__OS2__ -W3 -wd4996 -Zc:wchar_t-2211 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS = -Zi -Zl -GR- -GS- -EHs-c- -GF- -Gz -U__LINUX__ -W3 -wd4996 -Zc:wchar_t- 2211 2212 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS.debug = -GR- -EHs-c- -Zl 2212 2213 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS.release = -O2 -Oy- 2213 2214 else 2214 2215 TEMPLATE_VBOXW32GUESTR0_TOOL = VCC70 2215 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS = -Zi -Zl -GR- -GX- -GF- -Gz -U__LINUX__ - U__OS2__ -W32216 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS = -Zi -Zl -GR- -GX- -GF- -Gz -U__LINUX__ -W3 2216 2217 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS.debug = -GR- -GX- -Zl 2217 2218 TEMPLATE_VBOXW32GUESTR0_CXXFLAGS.release = -Ogitb2 -Oy- … … 2453 2454 $(QUIET)$(MKDIR) -p $(@D) 2454 2455 $(QUIET)$(RM) -f $@ [email protected] 2455 $(QUIET)$(APPEND) [email protected] "#ifndef __ version_generated_h__"2456 $(QUIET)$(APPEND) [email protected] "#define __ version_generated_h__"2456 $(QUIET)$(APPEND) [email protected] "#ifndef ___version_generated_h___" 2457 $(QUIET)$(APPEND) [email protected] "#define ___version_generated_h___" 2457 2458 $(QUIET)$(APPEND) [email protected] "" 2458 2459 $(QUIET)$(APPEND) [email protected] "#define VBOX_VERSION_MAJOR $(VBOX_VERSION_MAJOR)" -
trunk/include/iprt/alloca.h
r3092 r3629 22 22 #define __iprt_alloca_h__ 23 23 24 25 24 /* 26 25 * If there are more difficult platforms out there, we'll do OS … … 30 29 * interesting of course... 31 30 */ 32 #if defined(IN_RING0) && defined( __LINUX__)31 #if defined(IN_RING0) && defined(RT_OS_LINUX) 33 32 /* ASSUMES GNU C */ 34 33 # define alloca(cb) __builtin_alloca(cb) 35 34 #else 36 35 # include <stdlib.h> 37 # if !defined( __DARWIN__) && !defined(__FREEBSD__)36 # if !defined(RT_OS_DARWIN) && !defined(RT_OS_FREEBSD) 38 37 # include <malloc.h> 39 38 # endif 40 # ifdef __SOLARIS__39 # ifdef RT_OS_SOLARIS 41 40 # include <alloca.h> 42 41 # endif
Note:
See TracChangeset
for help on using the changeset viewer.