chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Amd64 port marked as done, added CLisp port as task to be done
[clg]
/
glib
/
proxy.lisp
diff --git
a/glib/proxy.lisp
b/glib/proxy.lisp
index 1ca8fe5acaa9d4e7c17ce181833fef83fb7714e1..36fbb58acf2a1374712ad2607091395fddf9d4ec 100644
(file)
--- a/
glib/proxy.lisp
+++ b/
glib/proxy.lisp
@@
-20,7
+20,7
@@
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: proxy.lisp,v 1.3
6 2006-02-26 15:30:01
espen Exp $
+;; $Id: proxy.lisp,v 1.3
7 2006-02-26 16:12:25
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-450,8
+450,12
@@
(defmethod initialize-internal-slot-functions ((slotd effective-alien-slot-def
(call-next-method))
(call-next-method))
- ;; TODO: call some C code to detect this a compile time
- (defconstant +struct-alignmen+ 4)
+ (defconstant +struct-alignmen+
+ #+sbcl (/ (sb-alien-internals:alien-type-alignment
+ (sb-alien-internals:parse-alien-type
+ 'system-area-pointer nil))
+ 8)
+ #-sbcl 4)
(defun align-offset (size)
(if (zerop (mod size +struct-alignmen+))
(defun align-offset (size)
(if (zerop (mod size +struct-alignmen+))