{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/889","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/889/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/889/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/889/events","html_url":"https://github.com/tbeu/Modelica/issues/889","id":195221542,"number":889,"title":"Include error in ModelicaInternal.c","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":499441885,"url":"https://api.github.com/repos/tbeu/Modelica/labels/bug","name":"bug","color":"ee0701","default":true},{"id":499450984,"url":"https://api.github.com/repos/tbeu/Modelica/labels/C-Sources","name":"C-Sources","color":"0000aa","default":false},{"id":499453872,"url":"https://api.github.com/repos/tbeu/Modelica/labels/P:%20normal","name":"P: normal","color":"aa8888","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/tbeu/Modelica/milestones/47","html_url":"https://github.com/tbeu/Modelica/milestone/47","labels_url":"https://api.github.com/repos/tbeu/Modelica/milestones/47/labels","id":2191907,"number":47,"title":"MSL3.2.1","description":"Backward compatible bug-fix release.","creator":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":164,"state":"closed","created_at":"2016-12-12T19:11:39Z","updated_at":"2016-12-13T10:56:51Z","due_on":"2013-03-31T00:00:00Z","closed_at":"2016-12-12T19:11:39Z"},"comments":3,"created_at":"2016-12-13T10:56:51Z","updated_at":"2016-12-13T10:57:20Z","closed_at":null,"body":"**Reported by anonymous on 29 Oct 2012 08:57 UTC**\nModelicaInternal.c includes in line 116 and 120 header file dirent.h twice. I assume that the first include should be of header file direct.h like it is for !__WATCOMC!__ and _WIN32 cases.\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/889"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/266708761","html_url":"https://github.com/tbeu/Modelica/issues/889#issuecomment-266708761","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/889","id":266708761,"user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T10:57:20Z","updated_at":"2016-12-13T10:57:20Z","body":"**Comment by anonymous on 30 Oct 2012 10:23 UTC**\nThere are even more issues with the Watcom compiler (defining ```__WATCOMC__```): The functions\r\n 1. ```ModelicaInternal_mkdir```\r\n 1. ```ModelicaInternal_stat```\r\n 1. ```ModelicaInternal_readDirectory```\r\n 1. ```ModelicaInternal_getNumberOfFiles```\r\n 1. ```ModelicaInternal_getcwd```\r\n 1. ```ModelicaInternal_setenv```\r\nraise a ```ModelicaNotExistError``` error although there is actually no need to do so.\r\n 1. ```ModelicaInternal_mkdir``` calls ```mkdir``` which is already included by header file direct.h\r\n 1. ```ModelicaInternal_stat``` uses ```struct stat``` which is already included by header file stat.h\r\n 1. ```ModelicaInternal_readDirectory``` and ```ModelicaInternal_getNumberOfFiles``` call ```opendir```, ```readdir``` and ```closedir``` which are already included by header file direct.h\r\n 1. ```ModelicaInternal_getcwd``` calls ```getcwd``` which is already included by header file direct.h\r\n 1. ```ModelicaInternal_setenv``` calls ```putenv``` which is already included by header file stdlib.h\r\nThus, these 6 functions can be fixed to also work with a Watcom compiler."}}
{"actor":{"display_login":"modelica-trac-importer"}}