{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/726","labels_url":"https://api.github.com/repos/facebook/rocksdb/issues/726/labels{/name}","comments_url":"https://api.github.com/repos/facebook/rocksdb/issues/726/comments","events_url":"https://api.github.com/repos/facebook/rocksdb/issues/726/events","html_url":"https://github.com/facebook/rocksdb/issues/726","id":107251563,"number":726,"title":"Windows port fails on Windows 7","user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"siying","id":5334567,"avatar_url":"https://avatars.githubusercontent.com/u/5334567?v=3","gravatar_id":"","url":"https://api.github.com/users/siying","html_url":"https://github.com/siying","followers_url":"https://api.github.com/users/siying/followers","following_url":"https://api.github.com/users/siying/following{/other_user}","gists_url":"https://api.github.com/users/siying/gists{/gist_id}","starred_url":"https://api.github.com/users/siying/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siying/subscriptions","organizations_url":"https://api.github.com/users/siying/orgs","repos_url":"https://api.github.com/users/siying/repos","events_url":"https://api.github.com/users/siying/events{/privacy}","received_events_url":"https://api.github.com/users/siying/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-09-18T18:20:17Z","updated_at":"2015-09-22T02:52:15Z","closed_at":null,"body":"`env_win.cc` calls `GetSystemTimePreciseAsFileTime` which is only supported on Windows 8 or later:\r\nhttps://msdn.microsoft.com/en-us/library/windows/desktop/hh706895(v=vs.85).aspx"},"comment":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/comments/142166666","html_url":"https://github.com/facebook/rocksdb/issues/726#issuecomment-142166666","issue_url":"https://api.github.com/repos/facebook/rocksdb/issues/726","id":142166666,"user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T02:52:15Z","updated_at":"2015-09-22T02:52:15Z","body":"@siying If you want to conditionally compile code based on the version of Windows being targeted I believe you need to simply check `_WIN32_WINNT` (see https://msdn.microsoft.com/en-us/library/6sehtctf.aspx). I've never done it but maybe something along these lines:\r\n```\r\n#if _WIN32_WINNT > _WIN32_WINNT_WIN7\r\n// Windows 8 and later\r\n#else\r\n// Windows 7 and earlier\r\n#endif\r\n```\r\n"}}