Skip to content

Commit

Permalink
Fixes eProsima#2166. Enable debug mode for Unix POSIX systems.
Browse files Browse the repository at this point in the history
Signed-off-by: promero <promero@mathworks.com>
  • Loading branch information
pablorcum committed Aug 24, 2021
1 parent 8d3791d commit 6347e26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cpp/rtps/reader/WriterProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "rtps/RTPSDomainImpl.hpp"
#include "utils/collections/node_size_helpers.hpp"

#if !defined(NDEBUG) && defined(FASTRTPS_SOURCE) && defined(__linux__)
#if !defined(NDEBUG) && defined(FASTRTPS_SOURCE) && defined(__unix__)
#define SHOULD_DEBUG_LINUX
#endif // SHOULD_DEBUG_LINUX

Expand Down
4 changes: 2 additions & 2 deletions src/cpp/rtps/reader/WriterProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,11 @@ class WriterProxy : public RTPSMessageSenderInterface

using ChangeIterator = decltype(changes_received_)::iterator;

#if !defined(NDEBUG) && defined(FASTRTPS_SOURCE) && defined(__linux__)
#if !defined(NDEBUG) && defined(FASTRTPS_SOURCE) && defined(__unix__)
int get_mutex_owner() const;

int get_thread_id() const;
#endif // if !defined(NDEBUG) && defined(FASTRTPS_SOURCE) && defined(__linux__)
#endif // if !defined(NDEBUG) && defined(FASTRTPS_SOURCE) && defined(__unix__)
};

} /* namespace rtps */
Expand Down

0 comments on commit 6347e26

Please sign in to comment.