branch: elpa/buttercup
commit a7d9813517c3ee6f4a881f7c68e23d0535ffc494
Author: Jorgen Schaefer <cont...@jorgenschaefer.de>
Commit: Jorgen Schaefer <cont...@jorgenschaefer.de>

    Add cl-defstruct compatibility alias.
---
 buttercup.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/buttercup.el b/buttercup.el
index 55f57dd..0243f52 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -32,6 +32,10 @@
 ;;;;;;;;;;;;;;;;;
 ;;; Compatibility
 
+;; Introduced in 24.3
+(when (not (fboundp 'cl-defstruct))
+  (defalias 'cl-defstruct 'defstruct))
+
 ;; Introduced in 24.4
 (when (not (fboundp 'define-error))
   (defun define-error (name message &optional parent)

Reply via email to