summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2013-05-09 21:47:09 +0800
committerRichard Grenville <[email protected]>2013-05-09 21:47:09 +0800
commit060b5ab23c3fb18a8695e8f7e5d145f023b7b3b2 (patch)
tree17185f496b1c588ce674311f316519d91d3e6793 /compton.h
parenta09589b2adb8c0bab7fc6395e1f8084726ddcbc3 (diff)
downloadtdebase-060b5ab23c3fb18a8695e8f7e5d145f023b7b3b2.tar.gz
tdebase-060b5ab23c3fb18a8695e8f7e5d145f023b7b3b2.zip
Bug fix: Compilation failure with NO_LIBCONFIG / NO_C2
- Fix compilation failure with NO_LIBCONFIG or NO_C2. Thanks to Spaulding for reporting.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compton.h b/compton.h
index 2e4e3d130..aba07c0d1 100644
--- a/compton.h
+++ b/compton.h
@@ -146,16 +146,16 @@ free_damage(session_t *ps, Damage *p) {
}
}
-#ifdef CONFIG_C2
/**
* Destroy a condition list.
*/
static inline void
free_wincondlst(c2_lptr_t **pcondlst) {
+#ifdef CONFIG_C2
while ((*pcondlst = c2_free_lptr(*pcondlst)))
continue;
-}
#endif
+}
/**
* Check whether a paint_t contains enough data.