C compilers have this thing about providing their own stddef.h
and then using whatever headers lie in the standard include paths (e.g., /usr/include
).
Fortran compilers on the other hand, went their separate ways some 40+ years ago and mixing stuff is now problematic —as @PierU mentioned, only the “Companion Processor” has that level of compatibility.