[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS
From: |
Jeffrey Walton |
Subject: |
Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS |
Date: |
Tue, 18 Jan 2022 15:56:27 -0500 |
On Tue, Jan 18, 2022 at 2:54 PM Reuben Thomas <rrt@sc3d.org> wrote:
>
> On Tue, 18 Jan 2022 at 18:38, Paul Eggert <eggert@cs.ucla.edu> wrote:
> >
> > I'm not sure a newer compiler would fix the bugs, as they're typically
> > present in the ctype.h supplied by the OS. If the newer compiler comes
> > with a fixed ctype.h you're OK; if it reuses or copies the old ctype.h
> > you'll have a problem.
>
> I understood that the system compiler on Mac OS <10.8 did not have C99
> semantics for "inline". If it does, then indeed it doesn't matter, my
> code will work anyway. In any case, I'm not concerned with the
> contents of ctype.h or other headers; my concern is my ability to
> declare my own functions "inline". In particular, I'm not affected by
> ctype functions being declared in such a way that they don't have
> external linkage.
If you are OS X 10.8 and above, then you will likely be using Apple
Clang (or LLVM Clang), and you likely won't have troubles.
OS X 10.6 switched to llvm-gcc. It should not have a problem with
inline. https://releases.llvm.org/2.8/docs/CommandGuide/html/llvmgcc.html
OS X 10.5 and earlier use GCC 4.2, and the compiler has Apple
extensions, like the ability to parse Objective C and generate native
code for it. It had the static/inline/external problems Paul
discussed.
Jeff
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, (continued)
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Paul Eggert, 2022/01/17
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/17
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Paul Eggert, 2022/01/17
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/17
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/18
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Jeffrey Walton, 2022/01/17
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Ryan Schmidt, 2022/01/17
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/18
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Paul Eggert, 2022/01/18
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/18
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS,
Jeffrey Walton <=
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/18
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Ryan Schmidt, 2022/01/20
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Jeffrey Walton, 2022/01/20
- Re: _GL_EXTERN_INLINE not defined correctly in config.h for macOS, Reuben Thomas, 2022/01/20