chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix STRING macro
[ypp-sc-tools.db-test.git]
/
pctb
/
common.h
diff --git
a/pctb/common.h
b/pctb/common.h
index d4464bdbefa4adf958d8619d5d2b63ef8c3ab88d..52f57d699c4cefd959d300bc44349038d7e4e5a8 100644
(file)
--- a/
pctb/common.h
+++ b/
pctb/common.h
@@
-32,6
+32,7
@@
#include <locale.h>
#include <stdarg.h>
#include <locale.h>
#include <stdarg.h>
+#include <math.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
@@
-165,4
+166,7
@@
char *masprintf(const char *fmt, ...) FMT(1,2);
#define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0])))
#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
#define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0])))
#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
+#define STRING2(x) #x
+#define STRING(x) STRING2(x)
+
#endif /*COMMON_H*/
#endif /*COMMON_H*/