Skip to content

Commit

Permalink
fix compilation with WIN32_LEAN_AND_MEAN
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjap committed Oct 28, 2023
1 parent cc655ad commit c996dcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ros_workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
colcon-defaults: |
{
"build": {
"cmake-args": [ "-DBUILD_SHARED_LIBS=OFF" ]
"cmake-args": [ "-DBUILD_SHARED_LIBS=OFF", "-DCMAKE_CXX_FLAGS='/DWIN32_MEAN_AND_LEAN'" ]
}
}
Expand All @@ -117,7 +117,7 @@ jobs:
colcon-defaults: |
{
"build": {
"cmake-args": [ "-DBUILD_SHARED_LIBS=OFF" ]
"cmake-args": [ "-DBUILD_SHARED_LIBS=OFF", "-DCMAKE_CXX_FLAGS='/DWIN32_MEAN_AND_LEAN'" ]
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/time_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ either expressed or implied, of the Regents of The University of Michigan.
#include <time.h>

#ifdef _WIN32
#include <windows.h>
#include <Winsock2.h>
typedef long long suseconds_t;
#endif

Expand Down

0 comments on commit c996dcf

Please sign in to comment.