{"action":"created","issue":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1522","repository_url":"https://api.github.com/repos/magic-lang/ooc-kean","labels_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1522/labels{/name}","comments_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1522/comments","events_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1522/events","html_url":"https://github.com/magic-lang/ooc-kean/issues/1522","id":140156368,"number":1522,"title":"Tests fail on win32 because of C99 number types without including stdint.h","user":{"login":"shamanas","id":265903,"avatar_url":"https://avatars.githubusercontent.com/u/265903?v=3","gravatar_id":"","url":"https://api.github.com/users/shamanas","html_url":"https://github.com/shamanas","followers_url":"https://api.github.com/users/shamanas/followers","following_url":"https://api.github.com/users/shamanas/following{/other_user}","gists_url":"https://api.github.com/users/shamanas/gists{/gist_id}","starred_url":"https://api.github.com/users/shamanas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamanas/subscriptions","organizations_url":"https://api.github.com/users/shamanas/orgs","repos_url":"https://api.github.com/users/shamanas/repos","events_url":"https://api.github.com/users/shamanas/events{/privacy}","received_events_url":"https://api.github.com/users/shamanas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magic-lang/ooc-kean/labels/bug","name":"bug","color":"881111"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/milestones/2","html_url":"https://github.com/magic-lang/ooc-kean/milestones/Later","labels_url":"https://api.github.com/repos/magic-lang/ooc-kean/milestones/2/labels","id":1323671,"number":2,"title":"Later","description":"Non-trivial things that need to be done eventually. ","creator":{"login":"davidhesselbom","id":4319680,"avatar_url":"https://avatars.githubusercontent.com/u/4319680?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhesselbom","html_url":"https://github.com/davidhesselbom","followers_url":"https://api.github.com/users/davidhesselbom/followers","following_url":"https://api.github.com/users/davidhesselbom/following{/other_user}","gists_url":"https://api.github.com/users/davidhesselbom/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhesselbom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhesselbom/subscriptions","organizations_url":"https://api.github.com/users/davidhesselbom/orgs","repos_url":"https://api.github.com/users/davidhesselbom/repos","events_url":"https://api.github.com/users/davidhesselbom/events{/privacy}","received_events_url":"https://api.github.com/users/davidhesselbom/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":62,"state":"open","created_at":"2015-09-25T11:30:32Z","updated_at":"2016-03-30T15:13:07Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-03-11T11:06:21Z","updated_at":"2016-03-30T15:13:07Z","closed_at":"2016-03-30T15:13:07Z","body":"First of all, here is my gcc -v:  \r\n```\r\n$ gcc -v\r\nUsing built-in specs.\r\nCOLLECT_GCC=C:\\msys64\\mingw32\\bin\\gcc.exe\r\nCOLLECT_LTO_WRAPPER=C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.2.0/lto-wrapper.exe\r\nTarget: i686-w64-mingw32\r\nConfigured with: ../gcc-5.2.0/configure --prefix=/mingw32 --with-local-prefix=/mingw32/local --build=i686-w64-mingw32 --host=i686-w64-mingw32 --target=i686-w64-mingw32 --with-native-system-header-dir=/mingw32/i686-w64-mingw32/include --libexecdir=/mingw32/lib --with-gxx-include-dir=/mingw32/include/c++/5.2.0 --enable-bootstrap --with-arch=i686 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw32 --with-mpfr=/mingw32 --with-mpc=/mingw32 --with-isl=/mingw32 --with-pkgversion='Rev4, Built by MSYS2 project' --with-bugurl=http://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld --disable-sjlj-exceptions --with-dwarf2\r\nThread model: posix\r\ngcc version 5.2.0 (Rev4, Built by MSYS2 project)\r\n```\r\n\r\nAnd the output of `./test.sh`:  \r\n\r\n```\r\n$ ./test.sh\r\nC:\\dev\\ooc_libs\\ooc-kean\\source\\system\\os\\System.ooc: In function 'os_System__System_hostname':\r\nC:\\dev\\ooc_libs\\ooc-kean\\source\\system\\os\\System.ooc:55:43: warning: passing argument 3 of 'GetComputerNameExA' from incompatible pointer type [-Wincompatible-pointer-types]\r\n    GetComputerNameEx(COMPUTER_NAME_FORMAT DNS_HOSTNAME, null, bufSize&)\r\n                                           ^\r\nIn file included from C:/msys64/mingw32/i686-w64-mingw32/include/winbase.h:36:0,\r\n                 from C:/msys64/mingw32/i686-w64-mingw32/include/windows.h:70,\r\n                 from .libs/ooc\\system\\os\\System-fwd.h:12,\r\n                 from .libs/ooc\\system\\os\\System.h:7,\r\n                 from rock_tmp\\ooc\\system\\os\\System.c:3:\r\nC:/msys64/mingw32/i686-w64-mingw32/include/sysinfoapi.h:84:29: note: expected 'LPDWORD {aka long unsigned int *}' but argument is of type 'Numbers__UInt * {aka unsigned int *}'\r\n   WINBASEAPI WINBOOL WINAPI GetComputerNameExA (COMPUTER_NAME_FORMAT NameType, LPSTR lpBuffer, LPDWORD nSize);\r\n                             ^\r\nC:\\dev\\ooc_libs\\ooc-kean\\source\\system\\os\\System.ooc:57:74: warning: passing argument 3 of 'GetComputerNameExA' from incompatible pointer type [-Wincompatible-pointer-types]\r\n    GetComputerNameEx(COMPUTER_NAME_FORMAT DNS_HOSTNAME, hostname data as Pointer, bufSize&)\r\n                                                                          ^\r\nIn file included from C:/msys64/mingw32/i686-w64-mingw32/include/winbase.h:36:0,\r\n                 from C:/msys64/mingw32/i686-w64-mingw32/include/windows.h:70,\r\n                 from .libs/ooc\\system\\os\\System-fwd.h:12,\r\n                 from .libs/ooc\\system\\os\\System.h:7,\r\n                 from rock_tmp\\ooc\\system\\os\\System.c:3:\r\nC:/msys64/mingw32/i686-w64-mingw32/include/sysinfoapi.h:84:29: note: expected 'LPDWORD {aka long unsigned int *}' but argument is of type 'Numbers__UInt * {aka unsigned int *}'\r\n   WINBASEAPI WINBOOL WINAPI GetComputerNameExA (COMPUTER_NAME_FORMAT NameType, LPSTR lpBuffer, LPDWORD nSize);\r\n                             ^\r\nIn file included from .libs/ooc\\concurrent\\Thread.h:7:0,\r\n                 from rock_tmp\\ooc\\concurrent\\Thread.c:3:\r\n.libs/ooc\\concurrent\\Thread-fwd.h:25:9: error: unknown type name 'uint32_t'\r\n typedef uint32_t Thread__ThreadId;\r\n         ^\r\nmagic-lang rock compiler\r\nC compiler failed on module Thread from concurrent, bailing out\r\n\r\n```  \r\n\r\nProposed fix:  \r\nAdd `include stdint` in `source/system/Numbers.ooc` (probably doesn't need to be versioned but I'm not familiar with how the platforms you target deal with it)"},"comment":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/comments/203482687","html_url":"https://github.com/magic-lang/ooc-kean/issues/1522#issuecomment-203482687","issue_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1522","id":203482687,"user":{"login":"marcusnaslund","id":14308896,"avatar_url":"https://avatars.githubusercontent.com/u/14308896?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusnaslund","html_url":"https://github.com/marcusnaslund","followers_url":"https://api.github.com/users/marcusnaslund/followers","following_url":"https://api.github.com/users/marcusnaslund/following{/other_user}","gists_url":"https://api.github.com/users/marcusnaslund/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusnaslund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusnaslund/subscriptions","organizations_url":"https://api.github.com/users/marcusnaslund/orgs","repos_url":"https://api.github.com/users/marcusnaslund/repos","events_url":"https://api.github.com/users/marcusnaslund/events{/privacy}","received_events_url":"https://api.github.com/users/marcusnaslund/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T15:13:07Z","updated_at":"2016-03-30T15:13:07Z","body":"Moved to #1466 "}}