thomasmacpherson / piface

Everything piface
68 stars 35 forks source link

Should wrap pfio.h in an extern "C" for CPP users #11

Closed bulletmark closed 11 years ago

bulletmark commented 11 years ago

A new player on the RPi forums complained that his CPP program was not linking against the piface functions. It would be easier for most if CPP wrappers were placed within piface.h:

ifdef __cplusplus

extern "C" {

endif

 <existing piface.h body>

ifdef __cplusplus

}

endif