Skip to content

Add missing #ifdef __cplusplus in dat.h#30

Merged
Lymia merged 1 commit intothpatch:masterfrom
BLumia:master
Oct 12, 2017
Merged

Add missing #ifdef __cplusplus in dat.h#30
Lymia merged 1 commit intothpatch:masterfrom
BLumia:master

Conversation

@BLumia
Copy link
Copy Markdown
Contributor

@BLumia BLumia commented Oct 12, 2017

Find this issue when using thtk inside a c++ project. This PR simply add the missing code in dat.h .

Refer to thtk/thtk/dat.h(L145) , it seems we only have a single unpaired } if we are using c++.

What added:

#ifdef __cplusplus
extern "C" {
#endif

Thanks
BLumia

add missing `#ifdef __cplusplus`
@Lymia Lymia merged commit 4b4486d into thpatch:master Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants