{"action":"created","comment":{"url":"https://api.github.com/repos/citra-emu/citra/pulls/comments/33688105","id":33688105,"diff_hunk":"@@ -0,0 +1,136 @@\n+/* Getopt for Microsoft C\n+This code is a modification of the Free Software Foundation, Inc.\n+Getopt library for parsing command line argument the purpose was\n+to provide a Microsoft Visual C friendly derivative. This code\n+provides functionality for both Unicode and Multibyte builds.\n+\n+Date: 02/03/2011 - Ludvik Jerabek - Initial Release\n+Version: 1.0\n+Comment: Supports getopt, getopt_long, and getopt_long_only\n+and POSIXLY_CORRECT environment flag\n+License: LGPL\n+\n+Revisions:\n+\n+02/03/2011 - Ludvik Jerabek - Initial Release\n+02/20/2011 - Ludvik Jerabek - Fixed compiler warnings at Level 4\n+07/05/2011 - Ludvik Jerabek - Added no_argument, required_argument, optional_argument defs\n+08/03/2011 - Ludvik Jerabek - Fixed non-argument runtime bug which caused runtime exception\n+08/09/2011 - Ludvik Jerabek - Added code to export functions for DLL and LIB\n+02/15/2012 - Ludvik Jerabek - Fixed _GETOPT_THROW definition missing in implementation file\n+08/01/2012 - Ludvik Jerabek - Created separate functions for char and wchar_t characters so single dll can do both unicode and ansi\n+10/15/2012 - Ludvik Jerabek - Modified to match latest GNU features\n+06/19/2015 - Ludvik Jerabek - Fixed maximum option limitation caused by option_a (255) and option_w (65535) structure val variable\n+\n+**DISCLAIMER**\n+THIS MATERIAL IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND,\n+EITHER EXPRESS OR IMPLIED, INCLUDING, BUT Not LIMITED TO, THE\n+IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\n+PURPOSE, OR NON-INFRINGEMENT. SOME JURISDICTIONS DO NOT ALLOW THE\n+EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY NOT\n+APPLY TO YOU. IN NO EVENT WILL I BE LIABLE TO ANY PARTY FOR ANY\n+DIRECT, INDIRECT, SPECIAL OR OTHER CONSEQUENTIAL DAMAGES FOR ANY\n+USE OF THIS MATERIAL INCLUDING, WITHOUT LIMITATION, ANY LOST\n+PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON\n+YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, EVEN If WE ARE\n+EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n+*/\n+#ifndef __GETOPT_H_\n+#define __GETOPT_H_\n+\n+#ifdef _GETOPT_API\n+#undef _GETOPT_API\n+#endif\n+\n+#if defined(EXPORTS_GETOPT) && defined(STATIC_GETOPT)\n+#error \"The preprocessor definitions of EXPORTS_GETOPT and STATIC_GETOPT can only be used individually\"\n+#elif defined(STATIC_GETOPT)\n+#pragma message(\"Warning static builds of getopt violate the Lesser GNU Public License\")\n+#define _GETOPT_API\n+#elif defined(EXPORTS_GETOPT)\n+#pragma message(\"Exporting getopt library\")\n+#define _GETOPT_API __declspec(dllexport)\n+#else\n+#pragma message(\"Importing getopt library\")\n+#define _GETOPT_API __declspec(dllimport)\n+#endif","path":"externals/getopt/getopt/getopt.h","position":56,"original_position":56,"commit_id":"c084606f701372e7e2e2faaf7b5b7d2d93391a30","original_commit_id":"c084606f701372e7e2e2faaf7b5b7d2d93391a30","user":{"login":"Syphurith","id":8421531,"avatar_url":"https://avatars.githubusercontent.com/u/8421531?v=3","gravatar_id":"","url":"https://api.github.com/users/Syphurith","html_url":"https://github.com/Syphurith","followers_url":"https://api.github.com/users/Syphurith/followers","following_url":"https://api.github.com/users/Syphurith/following{/other_user}","gists_url":"https://api.github.com/users/Syphurith/gists{/gist_id}","starred_url":"https://api.github.com/users/Syphurith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syphurith/subscriptions","organizations_url":"https://api.github.com/users/Syphurith/orgs","repos_url":"https://api.github.com/users/Syphurith/repos","events_url":"https://api.github.com/users/Syphurith/events{/privacy}","received_events_url":"https://api.github.com/users/Syphurith/received_events","type":"User","site_admin":false},"body":"@gwicks Citra build try to link against `getopt` parts in static way. However the default option is an export way with DLL. You may add the macro `STATIC_GETOPT` to see if there is defintion now (if you keep the extern definitions for ANSI, it would be re-definition)","created_at":"2015-07-01T15:11:08Z","updated_at":"2015-07-01T15:11:08Z","html_url":"https://github.com/citra-emu/citra/pull/881#discussion_r33688105","pull_request_url":"https://api.github.com/repos/citra-emu/citra/pulls/881","_links":{"self":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/comments/33688105"},"html":{"href":"https://github.com/citra-emu/citra/pull/881#discussion_r33688105"},"pull_request":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/881"}}},"pull_request":{"url":"https://api.github.com/repos/citra-emu/citra/pulls/881","id":38292278,"html_url":"https://github.com/citra-emu/citra/pull/881","diff_url":"https://github.com/citra-emu/citra/pull/881.diff","patch_url":"https://github.com/citra-emu/citra/pull/881.patch","issue_url":"https://api.github.com/repos/citra-emu/citra/issues/881","number":881,"state":"open","locked":false,"title":"Switch argument parsing to use getopt","user":{"login":"gwicks","id":1276215,"avatar_url":"https://avatars.githubusercontent.com/u/1276215?v=3","gravatar_id":"","url":"https://api.github.com/users/gwicks","html_url":"https://github.com/gwicks","followers_url":"https://api.github.com/users/gwicks/followers","following_url":"https://api.github.com/users/gwicks/following{/other_user}","gists_url":"https://api.github.com/users/gwicks/gists{/gist_id}","starred_url":"https://api.github.com/users/gwicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwicks/subscriptions","organizations_url":"https://api.github.com/users/gwicks/orgs","repos_url":"https://api.github.com/users/gwicks/repos","events_url":"https://api.github.com/users/gwicks/events{/privacy}","received_events_url":"https://api.github.com/users/gwicks/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T01:00:01Z","updated_at":"2015-07-01T15:11:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"627809fea62b2ca75186fbae7b13d9f759d869a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/citra-emu/citra/pulls/881/commits","review_comments_url":"https://api.github.com/repos/citra-emu/citra/pulls/881/comments","review_comment_url":"https://api.github.com/repos/citra-emu/citra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/citra-emu/citra/issues/881/comments","statuses_url":"https://api.github.com/repos/citra-emu/citra/statuses/c084606f701372e7e2e2faaf7b5b7d2d93391a30","head":{"label":"gwicks:master","ref":"master","sha":"c084606f701372e7e2e2faaf7b5b7d2d93391a30","user":{"login":"gwicks","id":1276215,"avatar_url":"https://avatars.githubusercontent.com/u/1276215?v=3","gravatar_id":"","url":"https://api.github.com/users/gwicks","html_url":"https://github.com/gwicks","followers_url":"https://api.github.com/users/gwicks/followers","following_url":"https://api.github.com/users/gwicks/following{/other_user}","gists_url":"https://api.github.com/users/gwicks/gists{/gist_id}","starred_url":"https://api.github.com/users/gwicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwicks/subscriptions","organizations_url":"https://api.github.com/users/gwicks/orgs","repos_url":"https://api.github.com/users/gwicks/repos","events_url":"https://api.github.com/users/gwicks/events{/privacy}","received_events_url":"https://api.github.com/users/gwicks/received_events","type":"User","site_admin":false},"repo":{"id":37728538,"name":"citra","full_name":"gwicks/citra","owner":{"login":"gwicks","id":1276215,"avatar_url":"https://avatars.githubusercontent.com/u/1276215?v=3","gravatar_id":"","url":"https://api.github.com/users/gwicks","html_url":"https://github.com/gwicks","followers_url":"https://api.github.com/users/gwicks/followers","following_url":"https://api.github.com/users/gwicks/following{/other_user}","gists_url":"https://api.github.com/users/gwicks/gists{/gist_id}","starred_url":"https://api.github.com/users/gwicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwicks/subscriptions","organizations_url":"https://api.github.com/users/gwicks/orgs","repos_url":"https://api.github.com/users/gwicks/repos","events_url":"https://api.github.com/users/gwicks/events{/privacy}","received_events_url":"https://api.github.com/users/gwicks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gwicks/citra","description":"Nintendo 3DS emulator/debugger","fork":true,"url":"https://api.github.com/repos/gwicks/citra","forks_url":"https://api.github.com/repos/gwicks/citra/forks","keys_url":"https://api.github.com/repos/gwicks/citra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gwicks/citra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gwicks/citra/teams","hooks_url":"https://api.github.com/repos/gwicks/citra/hooks","issue_events_url":"https://api.github.com/repos/gwicks/citra/issues/events{/number}","events_url":"https://api.github.com/repos/gwicks/citra/events","assignees_url":"https://api.github.com/repos/gwicks/citra/assignees{/user}","branches_url":"https://api.github.com/repos/gwicks/citra/branches{/branch}","tags_url":"https://api.github.com/repos/gwicks/citra/tags","blobs_url":"https://api.github.com/repos/gwicks/citra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gwicks/citra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gwicks/citra/git/refs{/sha}","trees_url":"https://api.github.com/repos/gwicks/citra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gwicks/citra/statuses/{sha}","languages_url":"https://api.github.com/repos/gwicks/citra/languages","stargazers_url":"https://api.github.com/repos/gwicks/citra/stargazers","contributors_url":"https://api.github.com/repos/gwicks/citra/contributors","subscribers_url":"https://api.github.com/repos/gwicks/citra/subscribers","subscription_url":"https://api.github.com/repos/gwicks/citra/subscription","commits_url":"https://api.github.com/repos/gwicks/citra/commits{/sha}","git_commits_url":"https://api.github.com/repos/gwicks/citra/git/commits{/sha}","comments_url":"https://api.github.com/repos/gwicks/citra/comments{/number}","issue_comment_url":"https://api.github.com/repos/gwicks/citra/issues/comments{/number}","contents_url":"https://api.github.com/repos/gwicks/citra/contents/{+path}","compare_url":"https://api.github.com/repos/gwicks/citra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gwicks/citra/merges","archive_url":"https://api.github.com/repos/gwicks/citra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gwicks/citra/downloads","issues_url":"https://api.github.com/repos/gwicks/citra/issues{/number}","pulls_url":"https://api.github.com/repos/gwicks/citra/pulls{/number}","milestones_url":"https://api.github.com/repos/gwicks/citra/milestones{/number}","notifications_url":"https://api.github.com/repos/gwicks/citra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gwicks/citra/labels{/name}","releases_url":"https://api.github.com/repos/gwicks/citra/releases{/id}","created_at":"2015-06-19T15:07:36Z","updated_at":"2015-06-19T15:07:37Z","pushed_at":"2015-06-29T15:44:36Z","git_url":"git://github.com/gwicks/citra.git","ssh_url":"git@github.com:gwicks/citra.git","clone_url":"https://github.com/gwicks/citra.git","svn_url":"https://github.com/gwicks/citra","homepage":null,"size":9320,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"citra-emu:master","ref":"master","sha":"a9fd93347dff482a83d45d92c23e46fd6337089c","user":{"login":"citra-emu","id":7605670,"avatar_url":"https://avatars.githubusercontent.com/u/7605670?v=3","gravatar_id":"","url":"https://api.github.com/users/citra-emu","html_url":"https://github.com/citra-emu","followers_url":"https://api.github.com/users/citra-emu/followers","following_url":"https://api.github.com/users/citra-emu/following{/other_user}","gists_url":"https://api.github.com/users/citra-emu/gists{/gist_id}","starred_url":"https://api.github.com/users/citra-emu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citra-emu/subscriptions","organizations_url":"https://api.github.com/users/citra-emu/orgs","repos_url":"https://api.github.com/users/citra-emu/repos","events_url":"https://api.github.com/users/citra-emu/events{/privacy}","received_events_url":"https://api.github.com/users/citra-emu/received_events","type":"Organization","site_admin":false},"repo":{"id":19866730,"name":"citra","full_name":"citra-emu/citra","owner":{"login":"citra-emu","id":7605670,"avatar_url":"https://avatars.githubusercontent.com/u/7605670?v=3","gravatar_id":"","url":"https://api.github.com/users/citra-emu","html_url":"https://github.com/citra-emu","followers_url":"https://api.github.com/users/citra-emu/followers","following_url":"https://api.github.com/users/citra-emu/following{/other_user}","gists_url":"https://api.github.com/users/citra-emu/gists{/gist_id}","starred_url":"https://api.github.com/users/citra-emu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citra-emu/subscriptions","organizations_url":"https://api.github.com/users/citra-emu/orgs","repos_url":"https://api.github.com/users/citra-emu/repos","events_url":"https://api.github.com/users/citra-emu/events{/privacy}","received_events_url":"https://api.github.com/users/citra-emu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/citra-emu/citra","description":"Nintendo 3DS emulator/debugger","fork":false,"url":"https://api.github.com/repos/citra-emu/citra","forks_url":"https://api.github.com/repos/citra-emu/citra/forks","keys_url":"https://api.github.com/repos/citra-emu/citra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/citra-emu/citra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/citra-emu/citra/teams","hooks_url":"https://api.github.com/repos/citra-emu/citra/hooks","issue_events_url":"https://api.github.com/repos/citra-emu/citra/issues/events{/number}","events_url":"https://api.github.com/repos/citra-emu/citra/events","assignees_url":"https://api.github.com/repos/citra-emu/citra/assignees{/user}","branches_url":"https://api.github.com/repos/citra-emu/citra/branches{/branch}","tags_url":"https://api.github.com/repos/citra-emu/citra/tags","blobs_url":"https://api.github.com/repos/citra-emu/citra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/citra-emu/citra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/citra-emu/citra/git/refs{/sha}","trees_url":"https://api.github.com/repos/citra-emu/citra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/citra-emu/citra/statuses/{sha}","languages_url":"https://api.github.com/repos/citra-emu/citra/languages","stargazers_url":"https://api.github.com/repos/citra-emu/citra/stargazers","contributors_url":"https://api.github.com/repos/citra-emu/citra/contributors","subscribers_url":"https://api.github.com/repos/citra-emu/citra/subscribers","subscription_url":"https://api.github.com/repos/citra-emu/citra/subscription","commits_url":"https://api.github.com/repos/citra-emu/citra/commits{/sha}","git_commits_url":"https://api.github.com/repos/citra-emu/citra/git/commits{/sha}","comments_url":"https://api.github.com/repos/citra-emu/citra/comments{/number}","issue_comment_url":"https://api.github.com/repos/citra-emu/citra/issues/comments{/number}","contents_url":"https://api.github.com/repos/citra-emu/citra/contents/{+path}","compare_url":"https://api.github.com/repos/citra-emu/citra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/citra-emu/citra/merges","archive_url":"https://api.github.com/repos/citra-emu/citra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/citra-emu/citra/downloads","issues_url":"https://api.github.com/repos/citra-emu/citra/issues{/number}","pulls_url":"https://api.github.com/repos/citra-emu/citra/pulls{/number}","milestones_url":"https://api.github.com/repos/citra-emu/citra/milestones{/number}","notifications_url":"https://api.github.com/repos/citra-emu/citra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/citra-emu/citra/labels{/name}","releases_url":"https://api.github.com/repos/citra-emu/citra/releases{/id}","created_at":"2014-05-16T18:33:15Z","updated_at":"2015-07-01T12:57:12Z","pushed_at":"2015-07-01T09:52:03Z","git_url":"git://github.com/citra-emu/citra.git","ssh_url":"git@github.com:citra-emu/citra.git","clone_url":"https://github.com/citra-emu/citra.git","svn_url":"https://github.com/citra-emu/citra","homepage":null,"size":21324,"stargazers_count":945,"watchers_count":945,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":238,"mirror_url":null,"open_issues_count":85,"forks":238,"open_issues":85,"watchers":945,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/881"},"html":{"href":"https://github.com/citra-emu/citra/pull/881"},"issue":{"href":"https://api.github.com/repos/citra-emu/citra/issues/881"},"comments":{"href":"https://api.github.com/repos/citra-emu/citra/issues/881/comments"},"review_comments":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/881/comments"},"review_comment":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/881/commits"},"statuses":{"href":"https://api.github.com/repos/citra-emu/citra/statuses/c084606f701372e7e2e2faaf7b5b7d2d93391a30"}}}}