Skip to content

Commit

Permalink
Seems that Darwin's _Bool is now byte-sized
Browse files Browse the repository at this point in the history
At least on OS X El Capitan. Breaking compatibility with older versions
because I'm not sure how to conditionalize for that. :-/
  • Loading branch information
luismbo committed Feb 2, 2016
1 parent 611696e commit 74a8086
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types.lisp
Expand Up @@ -1008,8 +1008,7 @@ The buffer has dynamic extent and may be stack allocated."
`(not (zerop ,value))))

;;; Boolean type that represents C99 _Bool
(defctype :bool (:boolean #+darwin :int
#-darwin :char))
(defctype :bool (:boolean :char))

;;;# Typedefs for built-in types.

Expand Down

0 comments on commit 74a8086

Please sign in to comment.