Skip to content

Commit

Permalink
[nrf noup] [nrfconnect] Remove D_SYS__PTHREADTYPES_H_ flag
Browse files Browse the repository at this point in the history
... from the gnu17 configuration to avoid missing
pthread types definitions (_pthreadtypes.h).

This tricked the preprocessor the header was already
included, hence we didn't get its content.

Signed-off-by: Marcin Kajor <[email protected]>
  • Loading branch information
markaj-nordic committed Mar 11, 2024
1 parent 2795f73 commit b9a39ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/nrfconnect/app/enable-gnu-std.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
add_library(gnu17 INTERFACE)
target_compile_options(gnu17
INTERFACE
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
-D_SYS__PTHREADTYPES_H_)
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>)
target_link_libraries(app PRIVATE gnu17)

0 comments on commit b9a39ba

Please sign in to comment.