chiark / gitweb /
libudev: wrap in extern "C" block for C++
authorDaniel Elstner <daniel.kitta@gmail.com>
Mon, 14 Dec 2009 20:15:20 +0000 (21:15 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 15 Dec 2009 11:49:25 +0000 (12:49 +0100)
commit3fac12b9a05f1849f7b1373060ade18269839856
tree7f9d2d45ecce40b9fbafdabaa0a8945a9d47f3ba
parent9c0c2fe6bb6c3e73d54c65149657dcfdba9b20b0
libudev: wrap in extern "C" block for C++

When libudev.h is included from C++ code, wrap the declarations in an
extern "C" { ... } block.  This tells the C++ compiler that symbols
are exported with C linkage and no name-mangling.
libudev/libudev.h