Skip to content
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

Include stddef in usbhost.h #5637

Merged
merged 4 commits into from
Jan 14, 2020
Merged

Include stddef in usbhost.h #5637

merged 4 commits into from
Jan 14, 2020

Conversation

jonberling
Copy link
Contributor

usbhost.h uses size_t, which is defined in stddef.h. This change includes stddef.h header.

jamieforth and others added 4 commits December 17, 2019 03:41
This allows `librealsense2` and `librealsense2-gl` to be used when
installed (e.g. `/usr/local/`) by adding the following to
`CMakeLists.txt`.

```
find_package(realsense2 REQUIRED)
find_package(realsense2-gl REQUIRED)
```
Fix: realsense2-gl headers not installed
usbhost.h uses size_t, which is defined in stddef.h. This change includes stddef.h header.
@jonberling
Copy link
Contributor Author

We don't use CMake for our build system. When compiling librealsense I received compilation errors in usbhost.h, due to size_t not being defined. Adding an include statement for stddef.h resolved the issue.

Copy link
Contributor

@radfordi radfordi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @jonberling.

@dorodnic dorodnic changed the base branch from master to development January 14, 2020 09:31
@dorodnic dorodnic merged commit 63f04c2 into IntelRealSense:development Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants