Skip to content

Include stddef in usbhost.h - #5637

Merged
dorodnic merged 4 commits into
realsenseai:developmentfrom
jonberling:patch-1
Jan 14, 2020
Merged

Include stddef in usbhost.h#5637
dorodnic merged 4 commits into
realsenseai:developmentfrom
jonberling:patch-1

Conversation

@jonberling

Copy link
Copy Markdown
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
Copy Markdown
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.

@radfordi radfordi left a comment

Copy link
Copy Markdown
Contributor

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 realsenseai: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