{"action":"opened","issue":{"url":"https://api.github.com/repos/jackhumbert/qmk_firmware/issues/812","repository_url":"https://api.github.com/repos/jackhumbert/qmk_firmware","labels_url":"https://api.github.com/repos/jackhumbert/qmk_firmware/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/jackhumbert/qmk_firmware/issues/812/comments","events_url":"https://api.github.com/repos/jackhumbert/qmk_firmware/issues/812/events","html_url":"https://github.com/jackhumbert/qmk_firmware/issues/812","id":181894603,"number":812,"title":"'KC_0xF1' undeclared","user":{"login":"treeman","id":162027,"avatar_url":"https://avatars.githubusercontent.com/u/162027?v=3","gravatar_id":"","url":"https://api.github.com/users/treeman","html_url":"https://github.com/treeman","followers_url":"https://api.github.com/users/treeman/followers","following_url":"https://api.github.com/users/treeman/following{/other_user}","gists_url":"https://api.github.com/users/treeman/gists{/gist_id}","starred_url":"https://api.github.com/users/treeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treeman/subscriptions","organizations_url":"https://api.github.com/users/treeman/orgs","repos_url":"https://api.github.com/users/treeman/repos","events_url":"https://api.github.com/users/treeman/events{/privacy}","received_events_url":"https://api.github.com/users/treeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-09T16:02:35Z","updated_at":"2016-10-09T16:02:35Z","closed_at":null,"body":"While trying to define a keymap for gh60 I get this error:\r\n\r\n```\r\nkeyboards/gh60/gh60.h:38:17: error: 'KC_0xF1' undeclared here (not in a function)\r\n     { KC_##K00, KC_##K01, KC_##K02, KC_##K03, KC_##K04, KC_##K05, KC_##K06, KC_##K07, KC_##K08, KC_##K09, KC_##K0A, KC_##K0B, KC_##K0C, KC_##K0D }, \\\r\n```\r\n\r\nWith the code:\r\n\r\n```\r\n    KEYMAP_ANSI(\r\n        TRNS, F1,  TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \\\r\n        TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \\\r\n        TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,     TRNS, \\\r\n        TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,          TRNS, \\\r\n        TRNS,TRNS,TRNS,               TRNS,               TRNS,TRNS,TRNS,TRNS),\r\n```\r\n\r\nIt seems that F1 gets expanded to 0xF1 as it's interpreted as a hex value which is taken literary in the macro expansion.\r\n\r\nUsing\r\n\r\n```\r\navr-gcc (GCC) 4.9.2\r\n```\r\n\r\nInterestingly I can build the same code using the tmk firmware with the same compiler.\r\n\r\nA workaround for the problem is to either use `KEYMAP(` directly or define a bunch of:\r\n\r\n```\r\n#define KC_0xF1 F1\r\n```"}}
{"actor":{"display_login":"treeman"}}