Browse Source

Make more modules C compatible

master
Macoy Madson 1 year ago
parent
commit
3839167a12
  1. 2
      src/DataBundle.cake
  2. 4
      src/Introspection.cake
  3. 2
      src/OpenGL.cake

2
src/DataBundle.cake

@ -3,6 +3,8 @@
;; string or you'll get garbage at the end
(import "CHelpers.cake" "CppHelpers.cake" "ComptimeHelpers.cake" "BuildTools.cake")
(c-import &with-decls "<stdbool.h>")
;; Do not change these arguments without also changing usage of them in data-bundle-invocations
(defmacro bundle-file (start-var-name symbol end-var-name symbol var-base-type array
filename-token string)

4
src/Introspection.cake

@ -4,8 +4,8 @@
"<string.h>" ;; strcmp
"<ctype.h>" ;; For isspace
&with-decls "<stdio.h>" ;; FILE ;; TODO: How can I remove this from header?
"<stddef.h>") ;; For size_t, offsetof
"<stddef.h>" ;; For size_t, offsetof
"<stdbool.h>")
;;
;; Comptime
;;

2
src/OpenGL.cake

@ -5,7 +5,7 @@
(c-import "stdio.h"
"SDL_syswm.h"
;; Use galogen-generated header. See (generate-gl-header)
&with-decls "gl46.h") ;; "GL/gl.h"
&with-decls "gl46.h" "<stdbool.h>") ;; "GL/gl.h"
(register-module-license "Galogen" g-apache-license-string)

Loading…
Cancel
Save