Skip to content

Commit

Permalink
Fix link failure in Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
  • Loading branch information
LuciaEchevarria99 committed Jul 10, 2024
1 parent 88f80c4 commit 83176fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/fastdds/dds/xtypes/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include <fastdds/dds/core/ReturnCode.hpp>
#include <fastdds/dds/xtypes/dynamic_types/DynamicData.hpp>
#include <fastdds/fastdds_dll.hpp>

namespace eprosima {
namespace fastdds {
Expand All @@ -41,7 +42,7 @@ enum class DynamicDataJsonFormat
* @param[in,out] output \c std::ostream reference where the JSON object is dumped.
* @retval RETCODE_OK when serialization fully succeeds, and inner (member serialization) failing code otherwise.
*/
ReturnCode_t json_serialize(
FASTDDS_EXPORTED_API ReturnCode_t json_serialize(
const DynamicData::_ref_type& data,
DynamicDataJsonFormat format,
std::ostream& output) noexcept;
Expand Down
4 changes: 1 addition & 3 deletions test/unittest/dds/xtypes/serializers/json/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ configure_file(
COPYONLY)

set(SERIALIZE_JSON_SOURCE
DynDataJSONTests.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/utils.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/xtypes/serializers/json/dynamic_data_json.cpp)
DynDataJSONTests.cpp)

file(GLOB DATATYPE_IMPLEMENTATION_CPP "types/**/implementation/*.cpp")
file(GLOB DATATYPE_SOURCES_CXX "types/**/gen/*.cxx")
Expand Down

0 comments on commit 83176fd

Please sign in to comment.