diff --git a/src/cpp/fastdds/xtypes/dynamic_types/idl_parser/IdlPreprocessor.hpp b/src/cpp/fastdds/xtypes/dynamic_types/idl_parser/IdlPreprocessor.hpp index 17d5a70682..6e8da44247 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/idl_parser/IdlPreprocessor.hpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/idl_parser/IdlPreprocessor.hpp @@ -127,6 +127,7 @@ class PreprocessorContext return std::make_pair(std::move(tmp_file), std::string(filename_buffer.data())); } + #else std::pair get_temporary_file() const { @@ -156,6 +157,7 @@ class PreprocessorContext // Return the file stream and the file name return std::make_pair(std::move(tmp_file), std::string(filename_template.begin(), filename_template.end() - 1)); } + #endif // _MSC_VER void replace_all_string( @@ -184,7 +186,10 @@ class PreprocessorContext std::string exec( const std::string& cmd) const { - auto deleter = [](FILE* f) { pclose(f); }; + auto deleter = [](FILE* f) + { + pclose(f); + }; std::unique_ptr pipe( popen(cmd.c_str(), EPROSIMA_PLATFORM_PIPE_OPEN_FLAGS), deleter); if (!pipe)