Title: syntax error caused by unconditional `__has_include` usage · Issue #439 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: syntax error caused by unconditional `__has_include` usage · Issue #439 · cppcheck-opensource/simplecpp
X Title: syntax error caused by unconditional `__has_include` usage · Issue #439 · cppcheck-opensource/simplecpp
Description: Encountered while working on #438. #if __has_include(
Open Graph Description: Encountered while working on #438. #if __has_include(
X Description: Encountered while working on #438. #if __has_include(<sys/single_threaded.h>) # include <sys/single_threaded.h> #endif a.cpp:1: syntax error: failed to evaluate #if condition, division/...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"syntax error caused by unconditional `__has_include` usage","articleBody":"Encountered while working on #438.\n\n```cpp\n#if __has_include(\u003csys/single_threaded.h\u003e)\n# include \u003csys/single_threaded.h\u003e\n#endif\n```\n\n```\na.cpp:1: syntax error: failed to evaluate #if condition, division/modulo by zero\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-06-12T10:36:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/439/simplecpp/issues/439"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e0dc59ae-eb98-4628-40cb-33a22d73618c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8870:237177:47E0B:60710:6A516B6C |
| html-safe-nonce | 91bf8929c4ba0047567325427bbe2c83eca374d2a57cb1b1a7cd2b218c0109ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODcwOjIzNzE3Nzo0N0UwQjo2MDcxMDo2QTUxNkI2QyIsInZpc2l0b3JfaWQiOiI0MzM1ODEyNTgxNjcxMTg3MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 351e787dadee69659f752ab36a885e8521d071d077292044bc6b53145a98a169 |
| hovercard-subject-tag | issue:3139739505 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a9fdb0dfd4ddfa95b2941805244bcfc9dfa8158c48315f4b9327d2ffb808bf0/cppcheck-opensource/simplecpp/issues/439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a9fdb0dfd4ddfa95b2941805244bcfc9dfa8158c48315f4b9327d2ffb808bf0/cppcheck-opensource/simplecpp/issues/439 |
| og:image:alt | Encountered while working on #438. #if __has_include( |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | firewave |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width