Changeset 52a0641 in rtems for c/build-tools/src


Ignore:
Timestamp:
Jun 3, 1996, 3:47:45 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f6e6ed8
Parents:
5e7b6272
Message:

added ifdef for sunos 4.x since it does not have strtoul.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/build-tools/src/unhex.c

    r5e7b6272 r52a0641  
    8989#define ERR_MASK   (ERR_ERRNO | ERR_FATAL | ERR_ABORT) /* all */
    9090
    91 #define stol(p) strtoul(p, (char **) NULL, 0)
    92 
     91#if (defined(sparc) && (sunos < 500))
     92#define stol(p) strtol(p, (char **) NULL, 0)            /* Sunos */
     93#else
     94#define stol(p) strtoul(p, (char **) NULL, 0)           /* Solaris */
     95#endif
     96 
    9397int   unhex(FILE *ifp, char *inm, FILE *ofp, char *onm);
    9498int   convert_Intel_records(FILE *ifp, char *inm, FILE *ofp, char *onm);
Note: See TracChangeset for help on using the changeset viewer.