Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
f210e5c6
Commit
f210e5c6
authored
Apr 17, 2000
by
Niels Möller
Browse files
* src/lsh_types.h (OFFSETOF): Define, if needed.
Rev: src/lsh_types.h:1.39
parent
4fcc4f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsh_types.h
View file @
f210e5c6
...
...
@@ -68,19 +68,25 @@ char *alloca ();
#define UINT8 unsigned char
#if __GNUC__ && HAVE_GCC_ATTRIBUTE
#define NORETURN __attribute__ ((__noreturn__))
#define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))
#define UNUSED __attribute__ ((__unused__))
#
define NORETURN __attribute__ ((__noreturn__))
#
define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))
#
define UNUSED __attribute__ ((__unused__))
#else
#define NORETURN
#define PRINTF_STYLE(f, a)
#define UNUSED
#
define NORETURN
#
define PRINTF_STYLE(f, a)
#
define UNUSED
#endif
#if HAVE_GCC_FUNCTION
#define FUNCTION_NAME __FUNCTION__
#
define FUNCTION_NAME __FUNCTION__
#else
#define FUNCTION_NAME "Unknown"
# define FUNCTION_NAME "Unknown"
#endif
#if HAVE_C_OFFSETOF
# define OFFSETOF offsetof
#else
# define OFFSETOF(type, field) ((int) &(((type *) 0)->field))
#endif
/* Stringizing macros */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment