forked from alex-eg/sex
do not mangle an include's target
A target is a filename, and the ː separator turned GL/gl.h into GLːgl.h, so every program including a header from a subdirectory stopped compiling the moment qualified names got their separator.
This commit is contained in:
@@ -492,6 +492,9 @@ forms, and what remains."
|
||||
((or ('struct . _)
|
||||
('union . _)) (walk-struct form))
|
||||
(('enum . _) (walk-enum form))
|
||||
;; A target is a filename and not an identifier: GL/gl.h is a path,
|
||||
;; and unkebabify would spell it GLːgl.h
|
||||
(('include target) (list '%include target))
|
||||
(('define name . rest) `(%define ,(atom-to-fmt-c name) ,@rest))
|
||||
(else (walk-expr form))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user