zephyr/arch/posix
Stephanos Ioannidis ae0437d2df arch: posix: Declare _posix_zephyr_main with int return type
This commit updates the `_posix_zephyr_main` declaration to use the
return type of `int` instead of `void` when `CONFIG_CPP_MAIN=y` (i.e.
C++-compliant main() support is enabled) so that Zephyr applications
defining their main() in a C++ source file can make use of the proper
main() definition of `int main(void)` as required by the C++ standard.

Note that the forward declaration of `_posix_zephyr_main` is required
if and only if the main() is defined in a C++ source file (i.e. when
`CONFIG_CPP_MAIN=y`).

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-11-05 16:41:45 +09:00
..
core
include arch: posix: Declare _posix_zephyr_main with int return type 2022-11-05 16:41:45 +09:00
CMakeLists.txt arch/posix: Fix 32 bit x86 fuzzing 2022-09-15 16:23:11 +00:00
Kconfig arch: posix: Add defaults for recommended stack sizes 2022-10-11 15:22:57 +02:00
Linux.aarch64.cmake