X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fse-context.in.h;h=bd586e8b10a1b0334e2dba01778efda3cf4e7627;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=2c36cc20a0516af1eeb5c025abeb6be4dc0b37cc;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/se-context.in.h b/lib/se-context.in.h index 2c36cc20a..bd586e8b1 100644 --- a/lib/se-context.in.h +++ b/lib/se-context.in.h @@ -3,24 +3,36 @@ # include +#ifndef _GL_INLINE_HEADER_BEGIN + #error "Please include config.h first." +#endif +_GL_INLINE_HEADER_BEGIN +#ifndef SE_CONTEXT_INLINE +# define SE_CONTEXT_INLINE _GL_INLINE +#endif + +/* The definition of _GL_UNUSED_PARAMETER is copied here. */ + typedef int context_t; -static inline context_t context_new (char const *s _UNUSED_PARAMETER_) +SE_CONTEXT_INLINE context_t context_new (char const *s _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return 0; } -static inline char *context_str (context_t con _UNUSED_PARAMETER_) +SE_CONTEXT_INLINE char *context_str (context_t con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return (void *) 0; } -static inline void context_free (context_t c _UNUSED_PARAMETER_) {} +SE_CONTEXT_INLINE void context_free (context_t c _GL_UNUSED_PARAMETER) {} -static inline int context_user_set (context_t sc _UNUSED_PARAMETER_, - char const *s _UNUSED_PARAMETER_) +SE_CONTEXT_INLINE int context_user_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } -static inline int context_role_set (context_t sc _UNUSED_PARAMETER_, - char const *s _UNUSED_PARAMETER_) +SE_CONTEXT_INLINE int context_role_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } -static inline int context_range_set (context_t sc _UNUSED_PARAMETER_, - char const *s _UNUSED_PARAMETER_) +SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } -static inline int context_type_set (context_t sc _UNUSED_PARAMETER_, - char const *s _UNUSED_PARAMETER_) +SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } +_GL_INLINE_HEADER_END + #endif