79719199

Date: 2025-07-29 21:00:56
Score: 0.5
Natty:
Report link

There is a CMake module for checking if a file can be included from C code: https://cmake.org/cmake/help/latest/module/CheckIncludeFile.html

include(CheckIncludeFile)

check_include_file(netinet/in.h SUPPORTS_IN_H)

if(SUPPORTS_IN_H)
  # ...
else()
  # ...
endif(SUPPORTS_IN_H)

For C++, you can use CheckIncludeFileCXX

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: László Lipódi