[swift-users] Ignore header file with module?

Harlan Haskins harlan at harlanhaskins.com
Fri Dec 4 17:06:22 CST 2015


Hi all,

Is there a way to ignore a specific header file when declaring a C dependency? I’m working with a library that publicly declares `flash` as a struct, and that conflicts with `ncurses`’s definition of `flash`. His code makes no use of curses.h, and I won’t be using it either.

Is there any way I can specifically exclude `curses.h` from my modulemap file? It’s a very simple file.

module CFlipper [system] {
    umbrella "/usr/local/include/flipper/"
    link "flipper"
    export *
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151204/224f7dc7/attachment.html>


More information about the swift-users mailing list