Mercurial > projects > pwm
comparison util.h @ 7:bec6f94453ec
Fix missing include
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Fri, 28 Jul 2017 08:11:30 +0200 |
parents | a7e41e1a79c8 |
children | 60c8ab006e55 |
comparison
equal
deleted
inserted
replaced
6:4269feba381e | 7:bec6f94453ec |
---|---|
22 */ | 22 */ |
23 | 23 |
24 #ifndef UTIL_H | 24 #ifndef UTIL_H |
25 #define UTIL_H | 25 #define UTIL_H |
26 | 26 |
27 #include <stdarg.h> | |
27 #include <stdlib.h> | 28 #include <stdlib.h> |
28 | 29 |
29 #define EXIT_USAGE 2 | 30 #define EXIT_USAGE 2 |
30 | 31 |
31 #define COUNTOF(x) ((sizeof (x)/sizeof (0[x])) / ((size_t)(!(sizeof (x) % \ | 32 #define COUNTOF(x) ((sizeof (x)/sizeof (0[x])) / ((size_t)(!(sizeof (x) % \ |