Generate system include directives?

17 views
Skip to first unread message

Nikolaus Rath

unread,
Feb 1, 2016, 5:26:29 PM2/1/16
to cython...@googlegroups.com
Hello,

Is there a way to tell Cython that it should generate an includes
for a system header file, instead of a local header file?

I.e., in some cases I would like

cdef extern from "pthread.h" nogil:
# bla

to generate

#include <pthread.h>

instead of

#include "pthread.h"


Best,
-Nikolaus


(No Cc on replies please, I'm reading the list)
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

»Time flies like an arrow, fruit flies like a Banana.«

Robert Bradshaw

unread,
Feb 2, 2016, 12:21:35 AM2/2/16
to cython...@googlegroups.com
Yes, you simply write

cdef extern from "<pthread.h>" nogil:
# blah

(We detect this special case and emit <pthread.h> without the quotes.)
> --
>
> --- You received this message because you are subscribed to the Google
> Groups "cython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cython-users...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages