From 5924c0c6ab995a5108871f629bf753caa8a2ed74 Mon Sep 17 00:00:00 2001 From: Sebastian Weyer <50481737+DocSepp@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:43:16 +0100 Subject: [PATCH] ao.h: add BACNET_STACK_EXPORT macro to Analog_Output_Read_Property function (#561) * Fixed BACNET_STACK_EXPORT macro to Analog_Output_Read_Property function Added the call to this macro so that Analog_Output_Read_Property is properly exported as a global symbol when the library is compiled with -DBUILD_SHARED_LIBS=ON using cmake. This macro expands to __declspec(dllexport) on Windows and __attribute__((visibility("default"))) on Linux. It is necessary when compiling with the -fvisibility-hidden flag. Signed-off-by: Sebastian Weyer Co-authored-by: Sebastian Weyer --- src/bacnet/basic/object/ao.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bacnet/basic/object/ao.h b/src/bacnet/basic/object/ao.h index 16d04179..97c35f10 100644 --- a/src/bacnet/basic/object/ao.h +++ b/src/bacnet/basic/object/ao.h @@ -184,6 +184,7 @@ extern "C" { bool Analog_Output_Max_Pres_Value_Set( uint32_t object_instance, float value); + BACNET_STACK_EXPORT int Analog_Output_Read_Property( BACNET_READ_PROPERTY_DATA * rpdata); BACNET_STACK_EXPORT