Changeset 52a0641 in rtems


Ignore:
Timestamp:
06/03/96 15:47:45 (28 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.

Files:
4 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);
  • c/build-tools/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);
  • tools/build/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);
  • tools/build/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.