Comment 7 for bug 373711

Revision history for this message
Alberto Milone (albertomilone) wrote :

Let me rephrase my request.

SRU: minimal patch for Jaunty is attached (see comment 3)

Nominating for SRU, fulfills: (1) have an obviously safe patch

The patch modifies only a header file so that extern "C" is used when developers include the header in a C++ program. This condition is tested with #if defined(__cplusplus) || defined(c_plusplus).

This change doesn't affect programs written in C, is definitely safe and will make C++ developers' life a little better.

The fix is from upstream and has been verified in Jaunty.

TEST CASE:
 install libxi-dev
 create a new C++ program
 include XInput.h
 call the DevicePresence() function
 try to compile the program
 notice the compilation error