GraphScope / GRIN

GRIN is a proposed standard graph retrieval interface in GraphScope.
https://graphscope.github.io/GRIN/
Apache License 2.0
12 stars 6 forks source link

[Improvement] Add `external C ` declaration to header files #3

Closed acezen closed 1 year ago

acezen commented 1 year ago

The GRIN's header files are C interfaces, when building with C++ engine(like GraphScope), it need to declare with external C when include these header in GraphScope. We can make user omit this step by adding

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __cplusplus
}
#endif

to these header files.

acezen commented 1 year ago

cc/ @andydiwenzhu what do you think? If you agree, I can push a request to revise this.

acezen commented 1 year ago

solved