[Bug 281976] biology/biosig: fix build with libc++ 19

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Oct 2024 18:59:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281976

            Bug ID: 281976
           Summary: biology/biosig: fix build with libc++ 19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dim@FreeBSD.org
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

With libc++ 19, biology/biosig fails to compile, with errors similar to:

  /usr/include/c++/v1/__math/special_functions.h:51:16: error: expected
unqualified-id
     51 |   if (!__math::isfinite(__H_n)) {
        |                ^
  ./t230/../biosig-dev.h:932:22: note: expanded from macro 'isfinite'
    932 | # define isfinite(a) (-INFINITY < (a) && (a) < INFINITY)
        |                      ^

This is because biosig attempts to define its own isfinite() macro,
which it should not do. Stub out the incompatible definition.

-- 
You are receiving this mail because:
You are the assignee for the bug.