VirtualBox

Changeset 5704

Show
Ignore:
Timestamp:
11/12/07 14:45:29 (1 year ago)
Author:
vboxsync
Message:

Runtime: extended the types.h linux hack to include uintptr_t, which is typedefed in the Linux 2.6.24 headers

Files:

Legend:

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

    r4927 r5704  
    5959     * Kludge for the linux kernel: 
    6060     *   1. sys/types.h doesn't mix with the kernel. 
    61      *   2. Starting with 2.6.19 linux/types.h typedefs bool and linux/stddef.h 
     61     *   2. Starting with 2.6.19, linux/types.h typedefs bool and linux/stddef.h 
    6262     *      declares false and true as enum values. 
     63     *   3. Starting with 2.6.24, linux/types.h typedefs uintptr_t. 
    6364     * We work around these issues here and nowhere else. 
    6465     */ 
     
    7071#  define true linux_true 
    7172#  define false linux_false 
     73#  define uintptr_t linux_uintptr_t 
    7274#  include <linux/types.h> 
    7375#  include <linux/stddef.h> 
     76#  undef uintptr_t 
    7477#  undef false 
    7578#  undef true 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy