{"id":23237745,"url":"https://github.com/thecompez/platform-detector","last_synced_at":"2025-10-20T05:25:53.099Z","repository":{"id":49837508,"uuid":"361080513","full_name":"thecompez/Platform-Detector","owner":"thecompez","description":"A useful tool for identifying the architecture, platform type, compiler, and operating system specifications by preprocessor feature support.","archived":false,"fork":false,"pushed_at":"2022-04-22T11:31:29.000Z","size":66,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-16T10:10:34.924Z","etag":null,"topics":["android","architecture","compilers","cplusplus","cross-platform","detector","freebsd","ios","linux","macos","openbsd","platform-detector","system-information","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecompez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-24T05:41:35.000Z","updated_at":"2024-11-21T16:53:06.000Z","dependencies_parsed_at":"2022-09-16T14:01:08.843Z","dependency_job_id":null,"html_url":"https://github.com/thecompez/Platform-Detector","commit_stats":null,"previous_names":["thecompez/platform-detector","kambizasadzadeh/platform-detector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thecompez/Platform-Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecompez%2FPlatform-Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecompez%2FPlatform-Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecompez%2FPlatform-Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecompez%2FPlatform-Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecompez","download_url":"https://codeload.github.com/thecompez/Platform-Detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecompez%2FPlatform-Detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280018302,"owners_count":26259361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","architecture","compilers","cplusplus","cross-platform","detector","freebsd","ios","linux","macos","openbsd","platform-detector","system-information","windows"],"created_at":"2024-12-19T04:14:45.942Z","updated_at":"2025-10-20T05:25:53.031Z","avatar_url":"https://github.com/thecompez.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Platform-Detector\n##  Cross-Platform Information Detector ##\nIt is a useful tool for identifying the architecture, platform type, compiler, and operating system specifications.\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-c-plus-plus.svg)](https://forthebadge.com)\n\n## Building\n\n- You need CMake tool for building source code\n\n```\ncd build\ncmake ..\nmake\n```\n\n## Usage Example\n```cpp\n#include \u003ciostream\u003e\n\n#include \"include/detector.hpp\"\n\nusing namespace std;\nusing namespace SystemInformation;\n\nint main()\n{\n  cout \u003c\u003c \"Hello World!\" \u003c\u003c endl;\n  cout \u003c\u003c \"Platform Architecture : \"  \u003c\u003c Detector::getArchitecture      () \u003c\u003c endl;\n  cout \u003c\u003c \"Processor Vendor : \"       \u003c\u003c Detector::getProcessorVendor   () \u003c\u003c endl;\n  cout \u003c\u003c \"Platform Type : \"          \u003c\u003c Detector::getPlatformType      () \u003c\u003c endl;\n  cout \u003c\u003c \"Operation System : \"       \u003c\u003c Detector::getOperationSystem   () \u003c\u003c endl;\n  cout \u003c\u003c \"Compiler Name : \"          \u003c\u003c Detector::getCompilerName      () \u003c\u003c endl;\n  cout \u003c\u003c \"Compiler Version : \"       \u003c\u003c Detector::getCompilerVersion   () \u003c\u003c endl;\n\n  //!Compiler Stataement\n#if defined(__COMPILER_CLANG_LLVM_)\n  cout \u003c\u003c \"Clang compiler has been detected!\\n\";\n#elif defined(__COMPILER_INTEL__)\n  cout \u003c\u003c \"Intel compiler has been detected!\\n\";\n#elif defined(__COMPILER_INTEL__)\n  cout \u003c\u003c \"Intel compiler has been detected!\\n\";\n#elif defined(__COMPILER_MINGW__)\n  cout \u003c\u003c \"MinGW compiler has been detected!\\n\";\n#elif defined(__COMPILER_MINGW_64__)\n  cout \u003c\u003c \"MinGW64 compiler has been detected!\\n\";\n#elif defined(__COMPILER_GCC__)\n  cout \u003c\u003c \"GCC compiler has been detected!\\n\";\n#elif defined(__COMPILER__HEWLETT_)\n  cout \u003c\u003c \"Hewlett compiler has been detected!\\n\";\n#elif defined(__COMPILER_IBM__)\n  cout \u003c\u003c \"IBM compiler has been detected!\\n\";\n#elif defined(__COMPILER_MSVC__)\n  cout \u003c\u003c \"MSVC compiler has been detected!\\n\";\n#elif defined(__COMPILER_PGCC__)\n  cout \u003c\u003c \"PGCC compiler has been detected!\\n\";\n#elif defined(__COMPILER_ORACLE__)\n  cout \u003c\u003c \"Oracle compiler has been detected!\\n\";\n#endif\n\n  //!Platform Stataement\n\n#if defined(PLATFORM_MAC)\n  cout \u003c\u003c \"This is macOS platform!\\n\";\n#elif defined(PLATFORM_WINDOWS)\n  cout \u003c\u003c \"This is macOS platform!\\n\";\n#elif defined(PLATFORM_LINUX)\n  cout \u003c\u003c \"This is Linux platform!\\n\";\n#elif defined(PLATFORM_WINDOWS)\n  cout \u003c\u003c \"This is Windows platform!\\n\";\n#elif defined(PLATFORM_FREEBSD)\n  cout \u003c\u003c \"This is freeBSD platform!\\n\";\n#elif defined(PLATFORM_OPENBSD)\n  cout \u003c\u003c \"This is openBSD platform!\\n\";\n#elif defined(PLATFORM_VXWORKS)\n  cout \u003c\u003c \"This is VXWorks platform!\\n\";\n#elif defined(PLATFORM_MOTOROLA)\n  cout \u003c\u003c \"This is Motorola platform!\\n\";\n#elif defined(PLATFORM_ULTRIX)\n  cout \u003c\u003c \"This is Ultrix platform!\\n\";\n#elif defined(PLATFORM_DOS)\n  cout \u003c\u003c \"This is Dos platform!\\n\";\n#elif defined(PLATFORM_WINDOWS_PHONE)\n  cout \u003c\u003c \"This is Windows Phone platform!\\n\";\n#elif defined(PLATFORM_IOS_SIMULATOR)\n  cout \u003c\u003c \"This is iOS Simulator platform!\\n\";\n#elif defined(PLATFORM_IOS)\n  cout \u003c\u003c \"This is iOS platform!\\n\";\n#elif defined(PLATFORM_APPLE_TV)\n  cout \u003c\u003c \"This is AppleTV platform!\\n\";\n#elif defined(PLATFORM_IWATCH)\n  cout \u003c\u003c \"This is iWatch platform!\\n\";\n#elif defined(PLATFORM_ANDROID)\n  cout \u003c\u003c \"This is Android platform!\\n\";\n#endif\n  cout \u003c\u003c \"Detected C++ Standard ISO Value : \" \u003c\u003c __CPP_VALUE__ \u003c\u003c \"\\n\";\n  cout \u003c\u003c \"Detected C++ Standard Version : \"   \u003c\u003c __CPP_VERSION__ \u003c\u003c \"\\n\";\n\n  return 0;\n}\n\n```\n\n## Contribution\nBug fixes, docs, and enhancements welcome! Please let me know kambiz.ceo@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecompez%2Fplatform-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecompez%2Fplatform-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecompez%2Fplatform-detector/lists"}