Skip to content

Commit a926463

Browse files
committed
interface: Declare extern C lib
Now we declare extern C for all compilers and hope this works. Signed-off-by: Johannes Demel <[email protected]>
1 parent 30cb633 commit a926463

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/volk/volk_common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@
7676
////////////////////////////////////////////////////////////////////////
7777
// C-linkage declaration macros
7878
// FIXME: due to the usage of complex.h, require gcc for c-linkage
79+
// Hope and p*** that extern "C" works for all relevant compilers nowadays.
7980
////////////////////////////////////////////////////////////////////////
80-
#if defined(__cplusplus) && (__GNUC__)
81+
#if defined(__cplusplus)
8182
#define __VOLK_DECL_BEGIN extern "C" {
8283
#define __VOLK_DECL_END }
8384
#else

0 commit comments

Comments
 (0)