{"action":"closed","issue":{"url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/22","labels_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/22/comments","events_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/22/events","html_url":"https://github.com/vidhance/android-camera-wrapper/issues/22","id":120766818,"number":22,"title":"Fix better macro for compiling code depending on HAL version","user":{"login":"emilwestergren","id":7700995,"avatar_url":"https://avatars.githubusercontent.com/u/7700995?v=3","gravatar_id":"","url":"https://api.github.com/users/emilwestergren","html_url":"https://github.com/emilwestergren","followers_url":"https://api.github.com/users/emilwestergren/followers","following_url":"https://api.github.com/users/emilwestergren/following{/other_user}","gists_url":"https://api.github.com/users/emilwestergren/gists{/gist_id}","starred_url":"https://api.github.com/users/emilwestergren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilwestergren/subscriptions","organizations_url":"https://api.github.com/users/emilwestergren/orgs","repos_url":"https://api.github.com/users/emilwestergren/repos","events_url":"https://api.github.com/users/emilwestergren/events{/privacy}","received_events_url":"https://api.github.com/users/emilwestergren/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T12:47:20Z","updated_at":"2015-12-11T09:25:35Z","closed_at":"2015-12-11T09:25:35Z","body":"We need a more scalable method of separating code specific to HAL versions than the current one.\r\n\r\n`#define HAL_VERSION_MAJOR 3`\r\n`#define HAL_VERSION_MINOR 2`\r\n```c++\r\n#define HAL_VERSION(MAJOR,MINOR)  HAL_VERSION_MAJOR == MAJOR && HAL_VERSION_MINOR == MINOR\r\n```\r\n`#if HAL_VERSION(3, 2)`\r\n`#if HAL_MAJOR_VERSION == 3`\r\n\r\n\r\n@sebastianbaginski do you have any suggestions here?"}}