summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2012-05-02 14:26:14 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2012-05-02 14:26:14 +0200
commitde5efc6a546dea02ea1625e869461cb0b96a9350 (patch)
tree2de9c9e50ad9bd2b1e8135f0e6a9aa14b8b4ac49 /calmwm.h
parent1603d185607bd4c0764def459c8599ce3d0e3d25 (diff)
downloadcwm-de5efc6a546dea02ea1625e869461cb0b96a9350.tar.gz
cwm-de5efc6a546dea02ea1625e869461cb0b96a9350.tar.xz
cwm-de5efc6a546dea02ea1625e869461cb0b96a9350.zip
Define compatibility macros only if they are needed
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/calmwm.h b/calmwm.h
index 09fd899..3ce6073 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -22,8 +22,12 @@
 #define _CALMWM_H_
 
 /* ugly stuff */
+#ifndef TAILQ_END
 #define TAILQ_END(head) NULL
+#endif
+#ifndef __dead
 #define __dead
+#endif
 char *fgetln(FILE *, size_t *);
 long long strtonum(const char *, long long, long long, const char **);
 size_t strlcpy(char *, const char *, size_t);