Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Make vitamtp.h C++ friendly. #34

Open
codestation opened this issue Aug 17, 2013 · 0 comments
Open

Make vitamtp.h C++ friendly. #34

codestation opened this issue Aug 17, 2013 · 0 comments

Comments

@codestation
Copy link

Please, add extern "C" in vitamtp.h so it can be imported in C++ projects easily. Without that, one has to add the extern keyword in every file that refers to the header.

#ifndef VitaMTP_h
#define VitaMTP_h

#ifdef __cplusplus
extern "C" {
#endif 
...
// vitamtp.h contents
...
#ifdef __cplusplus
}
#endif

#endif
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant