9 Commits

Author SHA1 Message Date
popcornmix
b6271f4b73 warnings: Fix some mostly spurious warnings
These are triggered when building with -O2 (with firmware compiler)
2017-03-21 20:55:48 +00:00
Peter Harliman Liem
213e44c6b2 Add end bracket for cpp extern (#351)
The missing bracket would cause compilation error in cpp.
2016-10-29 22:17:59 +01:00
popcornmix
c8ed769bc3 vcos: Implement vcos_strdup directly 2016-06-27 17:44:53 +01:00
popcornmix
481fcfbcf8 Fix some typos found by codespell
See: https://github.com/raspberrypi/userland/pull/299
2016-04-06 19:47:08 +01:00
asavah
34f02079dc Fix build with glibc 2.22 2015-08-23 00:47:10 +03:00
Maarten ter Huurne
3b9ac3ee1d containers: Fixed compile flags to select C99
Previously, "-D__STDC_VERSION__=199901L" was used to request C99
functionality from the system headers, but this does not tell the
compiler to provide C99 language features, so for example the
"restrict" keyword is not available then. This mismatch breaks the
build when using musl libc.

Instead we use "-std=c99" to select C99, but this has the side effect
of disabling non-standard APIs. So we have to manually re-select those.
The simplest way of doing so is "-D_DEFAULT_SOURCE", but that is not
universally supported yet by libcs, so for now I opted for the more
portable "-D_POSIX_C_SOURCE=199309L" to get access to clock_gettime()
and maybe other functionality not in the C99 standard.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
2014-10-17 02:33:51 +02:00
Andy Sloane
acc5ab3fcc Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
This way, the userland top-level CMakeLists.txt can be included with
add_subdirectory() from another project, e.g., as a submodule.
2014-09-29 13:34:18 -04:00
popcornmix
c244a08aa7 containers: add standalone CMakelists.txt
Move the test apps to their own CMakeLists.txt and
add a standalone/CMakeLists.txt which allows building
the containers test application as a standalone app for PC

mmal: fix the standalone build

Fix the standalone build to allow building the test applications
on PC.
2014-09-19 17:28:27 +01:00
popcornmix
99dd0f0ec8 mmal: Add MMAL container parsing code 2014-09-15 22:57:46 +01:00