[Bug 271808] -D_POSIX_C_SOURCE=200809L shadows visibility om M_PI gtom math.h

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Jun 2023 16:49:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271808

            Bug ID: 271808
           Summary: -D_POSIX_C_SOURCE=200809L shadows visibility om M_PI
                    gtom math.h
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

This testcase fails with -D_POSIX_C_SOURCE=200809L:

#include <math.h>
#include <stdio.h>


int main() {
        printf("M_PI=%f\n", M_PI);
}

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