develooper Front page | perl.perl5.changes | Postings from March 2023

[Perl/perl5] fd1d8e: hints/hpux - only run d_strtold define overridech...

From:
Yves Orton via perl5-changes
Date:
March 25, 2023 12:33
Subject:
[Perl/perl5] fd1d8e: hints/hpux - only run d_strtold define overridech...
Message ID:
Perl/perl5/push/refs/heads/yves/hpux_build_warning_suppression/c87f89-fd1d8e@github.com
  Branch: refs/heads/yves/hpux_build_warning_suppression
  Home:   https://github.com/Perl/perl5
  Commit: fd1d8edfa037daa5aa9f275f1cacfcc0ba7abb0d
      https://github.com/Perl/perl5/commit/fd1d8edfa037daa5aa9f275f1cacfcc0ba7abb0d
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-25 (Sat, 25 Mar 2023)

  Changed paths:
    M hints/hpux.sh

  Log Message:
  -----------
  hints/hpux - only run d_strtold define override check on version < 11.23

I added a version check around the logic as the comment already says
that "In HP-UXes prior to 11.23 strtold() returned a HP-UX specific
union called long_double, not a C99 long double."

The logic did not check for the version mentioned in the comment, it
simply greped for something that is no longer present in the file:

    grep 'double strtold.const' /usr/include/stdlib.h

outputs nothing on HPUX version B.11.31.

But

    grep "double strtold" /usr/include/stdlib.h

outputs:

    extern long_double strtold __((const char * __restrict, char ** __restrict));
    extern long double strtold __((const char * __restrict, char ** __restrict));

on HPUX version B.11.31.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About