Skip to content

Commit 5712d6d

Browse files
committed
Remove unneeded extern "C" from acl_auto_configure.h
While the use of extern "C" is technically valid and results in a C-compatible symbol name that does not include return and argument types, the function takes a std::string which is unavailable in C.
1 parent 02e5316 commit 5712d6d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

include/acl_auto_configure.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
#pragma GCC visibility push(protected)
1313
#endif
1414

15-
#if defined(__cplusplus)
16-
extern "C" {
17-
#endif
18-
1915
// Load info about a compiled program from its system description string into
2016
// devdef.
2117
// Return true if successful, false otherwise.
@@ -25,10 +21,6 @@ bool acl_load_device_def_from_str(const std::string &config_str,
2521
acl_device_def_autodiscovery_t &devdef,
2622
std::string &err_str) noexcept;
2723

28-
#if defined(__cplusplus)
29-
} /* extern "C" */
30-
#endif
31-
3224
#ifdef __GNUC__
3325
#pragma GCC visibility pop
3426
#endif

0 commit comments

Comments
 (0)