Issue: CMPLX is not defined

Pavel M pavel.morozkin@gmail.com
Tue May 10 15:39:01 GMT 2022


Hi all,

Issue: CMPLX is not defined.

$ cat t649.c
#if __STDC_NO_COMPLEX__ != 1
#include <complex.h>
#ifndef CMPLX
#error
#endif
#endif

$ gcc t649.c -std=c11 -pedantic -Wall -Wextra
t649.c:4:2: error: #error
    4 | #error
      |  ^~~~~

C11:
> 7.3.9.3 The CMPLX macros

Please fix.


More information about the Newlib mailing list