Changeset a1ec1b9 in rtems


Ignore:
Timestamp:
Jan 24, 2005, 3:02:00 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
14426c8f
Parents:
9078ecc4
Message:

2005-01-24 Ralf Corsepius <ralf.corsepius@…>

  • libcsupport/include/stdint.h: Use PTRDIFF_TYPE for intptr_t.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r9078ecc4 ra1ec1b9  
     12005-01-24      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * libcsupport/include/stdint.h: Use __PTRDIFF_TYPE for intptr_t.
     4
    152005-01-23      Ralf Corsepius <ralf.corsepius@rtems.org>
    26
  • cpukit/libcsupport/include/stdint.h

    r9078ecc4 ra1ec1b9  
    160160#endif
    161161
     162/*
     163 * GCC doesn't provide an propriate macro for [u]intptr_t
     164 * For now, use __PTRDIFF_TYPE__
     165 */
     166#if defined(__PTRDIFF_TYPE__)
     167typedef signed __PTRDIFF_TYPE__ intptr_t;
     168typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
     169#else
     170/* Fallback to hardcoded values, valid on cpu's with 32bit int/32bit void* */
    162171typedef signed long intptr_t;
    163172typedef unsigned long uintptr_t;
     173#endif
    164174
    165175/* Limits of Specified-Width Integer Types */
Note: See TracChangeset for help on using the changeset viewer.