Skip to content

Commit

Permalink
interface: Declare extern C lib
Browse files Browse the repository at this point in the history
Now we declare extern C for all compilers and hope this works.

Signed-off-by: Johannes Demel <[email protected]>
  • Loading branch information
jdemel committed Sep 26, 2021
1 parent 30cb633 commit a926463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/volk/volk_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@
////////////////////////////////////////////////////////////////////////
// C-linkage declaration macros
// FIXME: due to the usage of complex.h, require gcc for c-linkage
// Hope and p*** that extern "C" works for all relevant compilers nowadays.
////////////////////////////////////////////////////////////////////////
#if defined(__cplusplus) && (__GNUC__)
#if defined(__cplusplus)
#define __VOLK_DECL_BEGIN extern "C" {
#define __VOLK_DECL_END }
#else
Expand Down

0 comments on commit a926463

Please sign in to comment.