VirtualBox

Changeset 5704 in vbox


Ignore:
Timestamp:
Nov 12, 2007 1:45:29 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26052
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette