Changeset 0771936e in rtems


Ignore:
Timestamp:
Mar 22, 2015, 3:27:00 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
e02b20a3
Parents:
dd23125
git-author:
Joel Sherrill <joel.sherrill@…> (03/22/15 15:27:00)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:17:04)
Message:

libdl/rtl-shell.c: Adjust printf() format for off_t based on target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdl/rtl-shell.c

    rdd23125 r0771936e  
    2222#include <inttypes.h>
    2323
    24 //#if SIZEOF_OFF_T == 8
     24/*
     25 *  Flag the targets where off_t is 32 bits. This is not a compiler type
     26 *  so we can't rely on prerdefines.
     27 */
     28#if defined(__m32r__) || defined(__moxie__)
     29#define PRIdoff_t PRIo32
     30#else
    2531#define PRIdoff_t PRIo64
    26 //#elif SIZEOF_OFF_T == 4
    27 //#define PRIdoff_t PRIo32
    28 //#else
    29 //#error "unsupported size of off_t"
    30 //#endif
     32#endif
    3133
    3234#include <stdio.h>
Note: See TracChangeset for help on using the changeset viewer.