{"action":"created","comment":{"url":"https://api.github.com/repos/meshlink/utcp/pulls/comments/39623544","id":39623544,"diff_hunk":"@@ -0,0 +1,32 @@\n+#ifndef UTCP_COMPAT_H\n+#define UTCP_COMPAT_H\n+\n+#ifndef _MSC_VER\n+  #include <unistd.h>\n+#endif\n+\n+#ifdef _WIN32\n+  #include <winsock2.h>\n+#else\n+  #include <sys/time.h>\n+#endif\n+\n+#if !defined(PRINT_SIZE_T)\n+  #ifdef _WIN32\n+    #define PRINT_SIZE_T \"%Iu\"\n+    #define PRINT_SSIZE_T \"%Id\"\n+  #else\n+    #define PRINT_SIZE_T \"%zu\"\n+    #define PRINT_SSIZE_T \"%zd\"\n+  #endif\n+#endif\n+\n+#ifdef _MSC_VER\n+  // VS2012 and up has no ssize_t defined, before it was defined as unsigned int\n+  #ifndef _SSIZE_T\n+    #define _SSIZE_T\n+    typedef signed int        ssize_t;","path":"compat.h","position":28,"original_position":28,"commit_id":"1ce13545fb093a83f789e7a41f81e1214c0c506f","original_commit_id":"1ce13545fb093a83f789e7a41f81e1214c0c506f","user":{"login":"lr-evb","id":13624759,"avatar_url":"https://avatars.githubusercontent.com/u/13624759?v=3","gravatar_id":"","url":"https://api.github.com/users/lr-evb","html_url":"https://github.com/lr-evb","followers_url":"https://api.github.com/users/lr-evb/followers","following_url":"https://api.github.com/users/lr-evb/following{/other_user}","gists_url":"https://api.github.com/users/lr-evb/gists{/gist_id}","starred_url":"https://api.github.com/users/lr-evb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lr-evb/subscriptions","organizations_url":"https://api.github.com/users/lr-evb/orgs","repos_url":"https://api.github.com/users/lr-evb/repos","events_url":"https://api.github.com/users/lr-evb/events{/privacy}","received_events_url":"https://api.github.com/users/lr-evb/received_events","type":"User","site_admin":false},"body":"Falsch. `ssize_t` muss so groß sein wie ein `size_t` also 64 bit auf 64-Bit-Plattformen.","created_at":"2015-09-16T12:36:03Z","updated_at":"2015-09-16T12:36:03Z","html_url":"https://github.com/meshlink/utcp/pull/2#discussion_r39623544","pull_request_url":"https://api.github.com/repos/meshlink/utcp/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/meshlink/utcp/pulls/comments/39623544"},"html":{"href":"https://github.com/meshlink/utcp/pull/2#discussion_r39623544"},"pull_request":{"href":"https://api.github.com/repos/meshlink/utcp/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/meshlink/utcp/pulls/2","id":45163448,"html_url":"https://github.com/meshlink/utcp/pull/2","diff_url":"https://github.com/meshlink/utcp/pull/2.diff","patch_url":"https://github.com/meshlink/utcp/pull/2.patch","issue_url":"https://api.github.com/repos/meshlink/utcp/issues/2","number":2,"state":"open","locked":false,"title":"fix unsupported %z format flag, add some windows compat switches","user":{"login":"everHannes","id":9902721,"avatar_url":"https://avatars.githubusercontent.com/u/9902721?v=3","gravatar_id":"","url":"https://api.github.com/users/everHannes","html_url":"https://github.com/everHannes","followers_url":"https://api.github.com/users/everHannes/followers","following_url":"https://api.github.com/users/everHannes/following{/other_user}","gists_url":"https://api.github.com/users/everHannes/gists{/gist_id}","starred_url":"https://api.github.com/users/everHannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everHannes/subscriptions","organizations_url":"https://api.github.com/users/everHannes/orgs","repos_url":"https://api.github.com/users/everHannes/repos","events_url":"https://api.github.com/users/everHannes/events{/privacy}","received_events_url":"https://api.github.com/users/everHannes/received_events","type":"User","site_admin":false},"body":"compat switches copied from meshlink library\r\nmingw depends on the windows c library which has no full c99 support yet\r\n\r\nsadly the compiler doesn't warn on unsupported %z usage:\r\n```Other library implementations may not support all these features; GCC does not support warning about features that go beyond a particular library's limitations.```\r\nhttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html\r\n\r\non windows for %zu simply 'zu' is printed, and onfollowing variable specifiers mess up with the variable list resulting in a SIGSEGV","created_at":"2015-09-16T12:12:02Z","updated_at":"2015-09-16T12:36:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c2feb3585a48ae4d3a90330b29ef96878ce0ead","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meshlink/utcp/pulls/2/commits","review_comments_url":"https://api.github.com/repos/meshlink/utcp/pulls/2/comments","review_comment_url":"https://api.github.com/repos/meshlink/utcp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meshlink/utcp/issues/2/comments","statuses_url":"https://api.github.com/repos/meshlink/utcp/statuses/1ce13545fb093a83f789e7a41f81e1214c0c506f","head":{"label":"meshlink:feature/wincompat","ref":"feature/wincompat","sha":"1ce13545fb093a83f789e7a41f81e1214c0c506f","user":{"login":"meshlink","id":13501647,"avatar_url":"https://avatars.githubusercontent.com/u/13501647?v=3","gravatar_id":"","url":"https://api.github.com/users/meshlink","html_url":"https://github.com/meshlink","followers_url":"https://api.github.com/users/meshlink/followers","following_url":"https://api.github.com/users/meshlink/following{/other_user}","gists_url":"https://api.github.com/users/meshlink/gists{/gist_id}","starred_url":"https://api.github.com/users/meshlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshlink/subscriptions","organizations_url":"https://api.github.com/users/meshlink/orgs","repos_url":"https://api.github.com/users/meshlink/repos","events_url":"https://api.github.com/users/meshlink/events{/privacy}","received_events_url":"https://api.github.com/users/meshlink/received_events","type":"Organization","site_admin":false},"repo":{"id":39793730,"name":"utcp","full_name":"meshlink/utcp","owner":{"login":"meshlink","id":13501647,"avatar_url":"https://avatars.githubusercontent.com/u/13501647?v=3","gravatar_id":"","url":"https://api.github.com/users/meshlink","html_url":"https://github.com/meshlink","followers_url":"https://api.github.com/users/meshlink/followers","following_url":"https://api.github.com/users/meshlink/following{/other_user}","gists_url":"https://api.github.com/users/meshlink/gists{/gist_id}","starred_url":"https://api.github.com/users/meshlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshlink/subscriptions","organizations_url":"https://api.github.com/users/meshlink/orgs","repos_url":"https://api.github.com/users/meshlink/repos","events_url":"https://api.github.com/users/meshlink/events{/privacy}","received_events_url":"https://api.github.com/users/meshlink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meshlink/utcp","description":"","fork":false,"url":"https://api.github.com/repos/meshlink/utcp","forks_url":"https://api.github.com/repos/meshlink/utcp/forks","keys_url":"https://api.github.com/repos/meshlink/utcp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meshlink/utcp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meshlink/utcp/teams","hooks_url":"https://api.github.com/repos/meshlink/utcp/hooks","issue_events_url":"https://api.github.com/repos/meshlink/utcp/issues/events{/number}","events_url":"https://api.github.com/repos/meshlink/utcp/events","assignees_url":"https://api.github.com/repos/meshlink/utcp/assignees{/user}","branches_url":"https://api.github.com/repos/meshlink/utcp/branches{/branch}","tags_url":"https://api.github.com/repos/meshlink/utcp/tags","blobs_url":"https://api.github.com/repos/meshlink/utcp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meshlink/utcp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meshlink/utcp/git/refs{/sha}","trees_url":"https://api.github.com/repos/meshlink/utcp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meshlink/utcp/statuses/{sha}","languages_url":"https://api.github.com/repos/meshlink/utcp/languages","stargazers_url":"https://api.github.com/repos/meshlink/utcp/stargazers","contributors_url":"https://api.github.com/repos/meshlink/utcp/contributors","subscribers_url":"https://api.github.com/repos/meshlink/utcp/subscribers","subscription_url":"https://api.github.com/repos/meshlink/utcp/subscription","commits_url":"https://api.github.com/repos/meshlink/utcp/commits{/sha}","git_commits_url":"https://api.github.com/repos/meshlink/utcp/git/commits{/sha}","comments_url":"https://api.github.com/repos/meshlink/utcp/comments{/number}","issue_comment_url":"https://api.github.com/repos/meshlink/utcp/issues/comments{/number}","contents_url":"https://api.github.com/repos/meshlink/utcp/contents/{+path}","compare_url":"https://api.github.com/repos/meshlink/utcp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meshlink/utcp/merges","archive_url":"https://api.github.com/repos/meshlink/utcp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meshlink/utcp/downloads","issues_url":"https://api.github.com/repos/meshlink/utcp/issues{/number}","pulls_url":"https://api.github.com/repos/meshlink/utcp/pulls{/number}","milestones_url":"https://api.github.com/repos/meshlink/utcp/milestones{/number}","notifications_url":"https://api.github.com/repos/meshlink/utcp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meshlink/utcp/labels{/name}","releases_url":"https://api.github.com/repos/meshlink/utcp/releases{/id}","created_at":"2015-07-27T19:32:22Z","updated_at":"2015-07-27T19:32:31Z","pushed_at":"2015-09-16T12:12:02Z","git_url":"git://github.com/meshlink/utcp.git","ssh_url":"git@github.com:meshlink/utcp.git","clone_url":"https://github.com/meshlink/utcp.git","svn_url":"https://github.com/meshlink/utcp","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"meshlink:master","ref":"master","sha":"208004aaeeaec0a377d1c199b9d54d96d0f20bdd","user":{"login":"meshlink","id":13501647,"avatar_url":"https://avatars.githubusercontent.com/u/13501647?v=3","gravatar_id":"","url":"https://api.github.com/users/meshlink","html_url":"https://github.com/meshlink","followers_url":"https://api.github.com/users/meshlink/followers","following_url":"https://api.github.com/users/meshlink/following{/other_user}","gists_url":"https://api.github.com/users/meshlink/gists{/gist_id}","starred_url":"https://api.github.com/users/meshlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshlink/subscriptions","organizations_url":"https://api.github.com/users/meshlink/orgs","repos_url":"https://api.github.com/users/meshlink/repos","events_url":"https://api.github.com/users/meshlink/events{/privacy}","received_events_url":"https://api.github.com/users/meshlink/received_events","type":"Organization","site_admin":false},"repo":{"id":39793730,"name":"utcp","full_name":"meshlink/utcp","owner":{"login":"meshlink","id":13501647,"avatar_url":"https://avatars.githubusercontent.com/u/13501647?v=3","gravatar_id":"","url":"https://api.github.com/users/meshlink","html_url":"https://github.com/meshlink","followers_url":"https://api.github.com/users/meshlink/followers","following_url":"https://api.github.com/users/meshlink/following{/other_user}","gists_url":"https://api.github.com/users/meshlink/gists{/gist_id}","starred_url":"https://api.github.com/users/meshlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshlink/subscriptions","organizations_url":"https://api.github.com/users/meshlink/orgs","repos_url":"https://api.github.com/users/meshlink/repos","events_url":"https://api.github.com/users/meshlink/events{/privacy}","received_events_url":"https://api.github.com/users/meshlink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meshlink/utcp","description":"","fork":false,"url":"https://api.github.com/repos/meshlink/utcp","forks_url":"https://api.github.com/repos/meshlink/utcp/forks","keys_url":"https://api.github.com/repos/meshlink/utcp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meshlink/utcp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meshlink/utcp/teams","hooks_url":"https://api.github.com/repos/meshlink/utcp/hooks","issue_events_url":"https://api.github.com/repos/meshlink/utcp/issues/events{/number}","events_url":"https://api.github.com/repos/meshlink/utcp/events","assignees_url":"https://api.github.com/repos/meshlink/utcp/assignees{/user}","branches_url":"https://api.github.com/repos/meshlink/utcp/branches{/branch}","tags_url":"https://api.github.com/repos/meshlink/utcp/tags","blobs_url":"https://api.github.com/repos/meshlink/utcp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meshlink/utcp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meshlink/utcp/git/refs{/sha}","trees_url":"https://api.github.com/repos/meshlink/utcp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meshlink/utcp/statuses/{sha}","languages_url":"https://api.github.com/repos/meshlink/utcp/languages","stargazers_url":"https://api.github.com/repos/meshlink/utcp/stargazers","contributors_url":"https://api.github.com/repos/meshlink/utcp/contributors","subscribers_url":"https://api.github.com/repos/meshlink/utcp/subscribers","subscription_url":"https://api.github.com/repos/meshlink/utcp/subscription","commits_url":"https://api.github.com/repos/meshlink/utcp/commits{/sha}","git_commits_url":"https://api.github.com/repos/meshlink/utcp/git/commits{/sha}","comments_url":"https://api.github.com/repos/meshlink/utcp/comments{/number}","issue_comment_url":"https://api.github.com/repos/meshlink/utcp/issues/comments{/number}","contents_url":"https://api.github.com/repos/meshlink/utcp/contents/{+path}","compare_url":"https://api.github.com/repos/meshlink/utcp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meshlink/utcp/merges","archive_url":"https://api.github.com/repos/meshlink/utcp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meshlink/utcp/downloads","issues_url":"https://api.github.com/repos/meshlink/utcp/issues{/number}","pulls_url":"https://api.github.com/repos/meshlink/utcp/pulls{/number}","milestones_url":"https://api.github.com/repos/meshlink/utcp/milestones{/number}","notifications_url":"https://api.github.com/repos/meshlink/utcp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meshlink/utcp/labels{/name}","releases_url":"https://api.github.com/repos/meshlink/utcp/releases{/id}","created_at":"2015-07-27T19:32:22Z","updated_at":"2015-07-27T19:32:31Z","pushed_at":"2015-09-16T12:12:02Z","git_url":"git://github.com/meshlink/utcp.git","ssh_url":"git@github.com:meshlink/utcp.git","clone_url":"https://github.com/meshlink/utcp.git","svn_url":"https://github.com/meshlink/utcp","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meshlink/utcp/pulls/2"},"html":{"href":"https://github.com/meshlink/utcp/pull/2"},"issue":{"href":"https://api.github.com/repos/meshlink/utcp/issues/2"},"comments":{"href":"https://api.github.com/repos/meshlink/utcp/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/meshlink/utcp/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/meshlink/utcp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meshlink/utcp/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/meshlink/utcp/statuses/1ce13545fb093a83f789e7a41f81e1214c0c506f"}}}}