Skip to content

[18147] xtime will be changed to _timespec64 in an upcoming release of MSVC #3451

@MonicaLiu0311

Description

@MonicaLiu0311

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

No error.

Current behavior

Hello, I'm a member of Microsoft VCPKG, when I built this port in an internal version of MSVC, it failed with following errors:

D:\buildtrees\fastrtps\src\v2.7.0-5b113921c9.clean\include\fastrtps/utils/TimedMutex.hpp(93): error C2065: 'xtime': undeclared identifier
D:\buildtrees\fastrtps\src\v2.7.0-5b113921c9.clean\include\fastrtps/utils/TimedMutex.hpp(93): error C2059: syntax error: ')'

Steps to reproduce

Build with MSVC 19.36.32528.95 and above, xtime has been changed to _timespec64 since microsoft/STL#3594, it's an upcoming release.

Fast DDS version/commit

2.7.0. For details, see: fastrtps/vcpkg.json

Platform/Architecture

Other. Please specify in Additional context section.

Transport layer

Default configuration, UDPv4 & SHM

Additional context

  • Windows
  • Visual Studio

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions