Skip to content

Commit 49acfa1

Browse files
Use inline for functions defined in header files to avoid 'multiple definition of' compilation error messages
1 parent 2d51008 commit 49acfa1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpctl/apis/include/dpctl_capi.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
* C functions can use dpctl's C-API functions without linking to
4848
* shared objects defining this symbols, if they call `import_dpctl()`
4949
* prior to using those symbols.
50+
*
51+
* It is declared inline to allow multiple definitions in
52+
* different translation units
5053
*/
5154
static inline void import_dpctl(void)
5255
{

0 commit comments

Comments
 (0)