-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with WIN32_LEAN_AND_MEAN #296
Comments
What's the advantage of using
So it makes sense that some included headers would then be missing. |
Excluding rarely used headers reduces namespace pollution and improves build time. If one want to use it this library should not stand in the way if possible. Instead of including a very general header it should include exactly what it needs. Here is the link to the fix that we use: modriplanetdoo@45a0a70 |
With the diff I better understand what you aim for. I initially understood that you want to use the Is |
As specified in documentation https://learn.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-timeval I am not aware of any other time-related header. |
Why is |
Do you know of a standard C way of dealing with time at microsecond resolution? |
A quick pointer could be "https://stackoverflow.com/a/67731965" (https://stackoverflow.com/questions/5833094/get-a-timestamp-in-c-in-microseconds/67731965#67731965). Haven't grepped AprilTag for where |
The response you linked recommends not using
The time is used for profiling. |
This library is not compatible with
WIN32_LEAN_AND_MEAN
definition. It fails to find structtimeval
which is normally found bywindows.h
header. But withWIN32_LEAN_AND_MEAN
this header is excluded.We could directly include
winsock.h
header as it is specified in official documentation (https://learn.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-timeval).apriltag/common/time_util.h
Line 41 in b7bd75c
I can prepare a PR for you with this change.
The text was updated successfully, but these errors were encountered: