habanero-rice / hclib

A C/C++ task-based programming model for shared memory and distributed parallel computing.
http://habanero-rice.github.io/hclib/
BSD 3-Clause "New" or "Revised" License
71 stars 35 forks source link

Fix C includes for C++ headers #55

Closed DaoWen closed 7 years ago

DaoWen commented 7 years ago

C headers should be included from inside the extern "C" block.

agrippa commented 7 years ago

LGTM. Was there a particular compiler that triggered some errors, leading to this fix?

DaoWen commented 7 years ago

I added a function prototype to one of the headers when I was working on something else, and that resulted in a warning about linkage mismatch (C vs C++).