mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 11:05:18 +00:00
Put OBJ(image) in $ifdefs
so that conky produces more meaningful error message when compiled without imlib
This commit is contained in:
parent
bfda285567
commit
28978461a7
@ -694,8 +694,10 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
|||||||
obj_be_ifblock_endif(ifblock_opaque, obj);
|
obj_be_ifblock_endif(ifblock_opaque, obj);
|
||||||
END OBJ(eval, 0)
|
END OBJ(eval, 0)
|
||||||
obj->data.s = strndup(arg ? arg : "", text_buffer_size);
|
obj->data.s = strndup(arg ? arg : "", text_buffer_size);
|
||||||
|
#if defined(IMLIB2) && defined(X11)
|
||||||
END OBJ(image, 0)
|
END OBJ(image, 0)
|
||||||
obj->data.s = strndup(arg ? arg : "", text_buffer_size);
|
obj->data.s = strndup(arg ? arg : "", text_buffer_size);
|
||||||
|
#endif /* IMLIB2 */
|
||||||
END OBJ(exec, 0)
|
END OBJ(exec, 0)
|
||||||
obj->data.s = strndup(arg ? arg : "", text_buffer_size);
|
obj->data.s = strndup(arg ? arg : "", text_buffer_size);
|
||||||
END OBJ(execp, 0)
|
END OBJ(execp, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user