[swift-users] Ignore header file with module?

Daniel Dunbar daniel_dunbar at apple.com
Fri Dec 4 17:08:34 CST 2015

Try using:
  exclude header "/path/to/header.h"
in the module definition.

 - Daniel

> On Dec 4, 2015, at 3:06 PM, Harlan Haskins <harlan at harlanhaskins.com> wrote:
> 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 *
> }
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151204/38c744f5/attachment.html>

More information about the swift-users mailing list