Only include stddef.h where it is needed.

This commit is contained in:
Todd C. Miller
2015-06-20 05:34:35 -06:00
parent 941bfe3092
commit 4a07b472f0
135 changed files with 43 additions and 188 deletions

View File

@@ -23,7 +23,6 @@
#define SUDO_COMPAT_H
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
/*
@@ -231,17 +230,6 @@
#undef ISSET
#define ISSET(t, f) ((t) & (f))
/*
* Older systems may be missing stddef.h and/or offsetof macro
*/
#ifndef offsetof
# ifdef __offsetof
# define offsetof(type, field) __offsetof(type, field)
# else
# define offsetof(type, field) ((size_t)(&((type *)0)->field))
# endif
#endif
/*
* Simple isblank() macro and function for systems without it.
*/