{"action":"created","issue":{"url":"https://api.github.com/repos/acplt/open62541/issues/227","labels_url":"https://api.github.com/repos/acplt/open62541/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/acplt/open62541/issues/227/comments","events_url":"https://api.github.com/repos/acplt/open62541/issues/227/events","html_url":"https://github.com/acplt/open62541/issues/227","id":70332799,"number":227,"title":"implicit declaration of htoleXX","user":{"login":"LEvertz","id":9209026,"avatar_url":"https://avatars.githubusercontent.com/u/9209026?v=3","gravatar_id":"","url":"https://api.github.com/users/LEvertz","html_url":"https://github.com/LEvertz","followers_url":"https://api.github.com/users/LEvertz/followers","following_url":"https://api.github.com/users/LEvertz/following{/other_user}","gists_url":"https://api.github.com/users/LEvertz/gists{/gist_id}","starred_url":"https://api.github.com/users/LEvertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LEvertz/subscriptions","organizations_url":"https://api.github.com/users/LEvertz/orgs","repos_url":"https://api.github.com/users/LEvertz/repos","events_url":"https://api.github.com/users/LEvertz/events{/privacy}","received_events_url":"https://api.github.com/users/LEvertz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-23T07:18:14Z","updated_at":"2015-04-23T07:46:07Z","closed_at":null,"body":"On older and some smaller systems (glib < 2.9 or uclibc) the endian functions are not defined in endian.h. This leads to implicit declaration warnigns and undefined references.\r\nAs each use of the htoleXX functions is surrounded by an #ifdef clause to determine endianness I suggest to alter this if clause to\r\n\r\n#if (! defined (_WIN32)) && ( __BYTE_ORDER != __LITTLE_ENDIAN )\r\n\r\nthis is merely a work-aournd to get older systems with native little-endian running but it works as __BYTE_ORDER seems to be always defined in endian.h"},"comment":{"url":"https://api.github.com/repos/acplt/open62541/issues/comments/95479145","html_url":"https://github.com/acplt/open62541/issues/227#issuecomment-95479145","issue_url":"https://api.github.com/repos/acplt/open62541/issues/227","id":95479145,"user":{"login":"LEvertz","id":9209026,"avatar_url":"https://avatars.githubusercontent.com/u/9209026?v=3","gravatar_id":"","url":"https://api.github.com/users/LEvertz","html_url":"https://github.com/LEvertz","followers_url":"https://api.github.com/users/LEvertz/followers","following_url":"https://api.github.com/users/LEvertz/following{/other_user}","gists_url":"https://api.github.com/users/LEvertz/gists{/gist_id}","starred_url":"https://api.github.com/users/LEvertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LEvertz/subscriptions","organizations_url":"https://api.github.com/users/LEvertz/orgs","repos_url":"https://api.github.com/users/LEvertz/repos","events_url":"https://api.github.com/users/LEvertz/events{/privacy}","received_events_url":"https://api.github.com/users/LEvertz/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T07:46:07Z","updated_at":"2015-04-23T07:46:07Z","body":"A further idea would be to check if these functions (as they are actually macros) are defined and if not define it with the byteswaps (as done in newer endian.h versions) but I don’t know whether the byteswaps may be as well “new” functions\n\n \n\nVon: Sten [mailto:notifications@github.com] \nGesendet: Donnerstag, 23. April 2015 09:33\nAn: acplt/open62541\nCc: Evertz, Lars\nBetreff: Re: [open62541] implicit declaration of htoleXX (#227)\n\n \n\n@all: is there another *defenitive* fix for older glibc that is tolerable with a tolerable work-load? Or does this one fix everything?\n\n> Am 23.04.2015 um 09:18 schrieb LEvertz <notifications@github.com>:\n> \n> On older and some smaller systems (glib < 2.9 or uclibc) the endian functions are not defined in endian.h. This leads to implicit declaration warnigns and undefined references.\n> As each use of the htoleXX functions is surrounded by an #ifdef clause to determine endianness I suggest to alter this if clause to\n> \n> #if (! defined (_WIN32)) && ( __BYTE_ORDER != __LITTLE_ENDIAN )\n> \n> this is merely a work-aournd to get older systems with native little-endian running but it works as __BYTE_ORDER seems to be always defined in endian.h\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n\n\n\n—\nReply to this email directly or view it on GitHub <https://github.com/acplt/open62541/issues/227#issuecomment-95476785> .Das Bild wurde vom Absender entfernt.\n\n"}}