mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Now that <runetype.h> no longer brings in namespace pollution,
bring back the inline functions for the !__BSD_VISIBLE case.
This commit is contained in:
parent
ddc1eded85
commit
838faf1c74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130962
|
@ -167,17 +167,6 @@ __END_DECLS
|
||||||
#define __inline
|
#define __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* <runetype.h> brings namespace pollution (struct member names). This prevents
|
|
||||||
* us from using the inline optimizations in the more strict __POSIX_VISIBLE and
|
|
||||||
* __XSI_VISIBLE namespaces. To fix this properly would require that we rename
|
|
||||||
* member names of long-standing structs, or something equally evil.
|
|
||||||
*/
|
|
||||||
#if !__BSD_VISIBLE && !defined(_USE_CTYPE_INLINE_) && \
|
|
||||||
!defined(_DONT_USE_CTYPE_INLINE_)
|
|
||||||
#define _DONT_USE_CTYPE_INLINE_
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use inline functions if we are allowed to and the compiler supports them.
|
* Use inline functions if we are allowed to and the compiler supports them.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -167,17 +167,6 @@ __END_DECLS
|
||||||
#define __inline
|
#define __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* <runetype.h> brings namespace pollution (struct member names). This prevents
|
|
||||||
* us from using the inline optimizations in the more strict __POSIX_VISIBLE and
|
|
||||||
* __XSI_VISIBLE namespaces. To fix this properly would require that we rename
|
|
||||||
* member names of long-standing structs, or something equally evil.
|
|
||||||
*/
|
|
||||||
#if !__BSD_VISIBLE && !defined(_USE_CTYPE_INLINE_) && \
|
|
||||||
!defined(_DONT_USE_CTYPE_INLINE_)
|
|
||||||
#define _DONT_USE_CTYPE_INLINE_
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use inline functions if we are allowed to and the compiler supports them.
|
* Use inline functions if we are allowed to and the compiler supports them.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue