Move SET/CLR/ISSET from config.h.in to missing.h

This commit is contained in:
Todd C. Miller
2013-04-01 15:38:09 -04:00
parent 3a83dbafbe
commit f7b62e8dc1
3 changed files with 8 additions and 16 deletions

View File

@@ -158,6 +158,14 @@
# define MAX(a,b) (((a)>(b))?(a):(b))
#endif
/* Macros to set/clear/test flags. */
#undef SET
#define SET(t, f) ((t) |= (f))
#undef CLR
#define CLR(t, f) ((t) &= ~(f))
#undef ISSET
#define ISSET(t, f) ((t) & (f))
/*
* Some systems define this in <sys/param.h> but we don't include that anymore.
*/