Wrap buffer-size defconstant in eval-when (via cl-md5).

This aids portability, especially to allegro and openmcl.
This commit is contained in:
2012-10-15 00:09:56 +02:00
parent fac706f678
commit 2b771017bb

View File

@ -508,9 +508,10 @@ simple-arrays with such element types."
(update-md5-state state sequence :start start :end real-end))
(finalize-md5-state state)))
(defconstant +buffer-size+ (* 128 1024)
"Size of internal buffer to use for md5sum-stream and md5sum-file
operations. This should be a multiple of 64, the MD5 block size.")
(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +buffer-size+ (* 128 1024)
"Size of internal buffer to use for md5sum-stream and md5sum-file
operations. This should be a multiple of 64, the MD5 block size."))
(deftype buffer-index () `(integer 0 ,+buffer-size+))