VirtualBox

Changeset 3637

Show
Ignore:
Timestamp:
07/16/07 15:06:53 (1 year ago)
Author:
vboxsync
Message:

LINUX -> RT_OS_LINUX.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/cdefs.h

    r3636 r3637  
    3131 */ 
    3232#ifdef HAVE_SYS_CDEFS_H 
    33 # if defined(__LINUX__) && defined(__KERNEL__) 
     33# if defined(RT_ARCH_LINUX) && defined(__KERNEL__) 
    3434#  error "oops" 
    3535# endif 
     
    8181#define GC_ARCH_BITS 
    8282#endif /* __DOXYGEN__ */ 
     83 
     84/* A temporary hack. */ 
     85#ifndef RT_ARCH_LINUX 
     86# ifdef __LINUX__ 
     87#  define RT_ARCH_LINUX 
     88#  warning "__LINUX__ without RT_ARCH_LINUX!" 
     89# endif  
     90#endif  
    8391 
    8492/** @def RT_ARCH_X86 
  • trunk/include/iprt/mem.h

    r3636 r3637  
    154154RTDECL(void)      RTMemExecFree(void *pv); 
    155155 
    156 #if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(__LINUX__
     156#if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(RT_OS_LINUX
    157157/** 
    158158 * Donate read+write+execute memory to the exec heap. 
  • trunk/include/iprt/spinlock.h

    r3636 r3637  
    4040{ 
    4141#ifdef IN_RING0 
    42 # ifdef __LINUX__ 
     42# ifdef RT_OS_LINUX 
    4343    /** The saved [R|E]FLAGS. */ 
    4444    unsigned long   flFlags; 
  • trunk/include/iprt/stdint.h

    r3630 r3637  
    3838#include <iprt/cdefs.h> 
    3939 
    40 #if (!defined(__LINUX__) || !defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) && !defined(IPRT_NO_CRT) 
     40#if (!defined(RT_OS_LINUX) || !defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) && !defined(IPRT_NO_CRT) 
    4141# include <stdint.h> 
    4242 
    4343#else 
    4444 
    45 #if (!defined(__LINUX__) && !defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(_MSC_VER) /** @todo remove _MSC_VER check (vcc8 merge) */ 
     45#if (!defined(RT_OS_LINUX) && !defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(_MSC_VER) /** @todo remove _MSC_VER check (vcc8 merge) */ 
    4646/* machine specific */ 
    4747typedef signed char     __int8_t; 
     
    6565#endif /* !linux kernel */ 
    6666 
    67 #if !defined(_WIN64) || defined(__i386__) || defined(__I386__) || defined(__LINUX__) /** @todo fix this, __x86__ should suffice if cdefs.h is included! */ 
     67#if !defined(_WIN64) || defined(__i386__) || defined(__I386__) || defined(RT_OS_LINUX) /** @todo fix this, __x86__ should suffice if cdefs.h is included! */ 
    6868typedef signed long             __intptr_t; 
    6969typedef unsigned long           __uintptr_t; 
     
    7575 
    7676/* the stuff we use */ 
    77 #if (!defined(__LINUX__) && !defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(_MSC_VER) /** @todo remove _MSC_VER check (vcc8 merge) */ 
     77#if (!defined(RT_OS_LINUX) && !defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(_MSC_VER) /** @todo remove _MSC_VER check (vcc8 merge) */ 
    7878#ifndef _INT8_T_DECLARED 
    7979typedef __int8_t        int8_t; 
  • trunk/include/iprt/string.h

    r3636 r3637  
    2626#include <iprt/stdarg.h> 
    2727#include <iprt/err.h> /* for VINF_SUCCESS */ 
    28 #if defined(__LINUX__) && defined(__KERNEL__) 
     28#if defined(RT_OS_LINUX) && defined(__KERNEL__) 
    2929# include <linux/string.h> 
    3030#elif defined(RT_OS_FREEBSD) && defined(_KERNEL) 
  • trunk/include/iprt/types.h

    r3636 r3637  
    5959#  endif 
    6060 
    61 # elif defined(__LINUX__) && defined(__KERNEL__) 
     61# elif defined(RT_OS_LINUX) && defined(__KERNEL__) 
    6262    /* 
    6363     * Kludge for the linux kernel: 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy