Commit: 8cdc4169944312f676e56d3f6333bfd9bf4d4f3c Parent: fb9e16dd822d4d786b935426e5d0f2a276319b27 Author: Randy Palamar Date: Fri, 20 Jun 2025 13:51:04 -0600 lib: allow LIB_FN to be predefined Diffstat:
M | helpers/ogl_beamformer_lib_base.h | | | 10 | ++++++---- |
M | tests/throughput.c | | | 1 | + |
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/helpers/ogl_beamformer_lib_base.h b/helpers/ogl_beamformer_lib_base.h @@ -1,8 +1,10 @@ /* See LICENSE for license details. */ -#if defined(_WIN32) -#define LIB_FN __declspec(dllexport) -#else -#define LIB_FN +#ifndef LIB_FN + #if defined(_WIN32) + #define LIB_FN __declspec(dllexport) + #else + #define LIB_FN + #endif #endif #define BEAMFORMER_LIB_ERRORS \ diff --git a/tests/throughput.c b/tests/throughput.c @@ -4,6 +4,7 @@ * without replacing the data. */ +#define LIB_FN function #include "ogl_beamformer_lib.c" #include <signal.h>