Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2237 from rainers/issue19046
Browse files Browse the repository at this point in the history
fix Issue 19046 - OSX: bad value for core.stdc.time.CLOCKS_PER_SEC
merged-on-behalf-of: Jacob Carlborg <jacob-carlborg@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Jul 2, 2018
2 parents 9a8edfb + ac1bf35 commit 0e77501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/stdc/time.d
Expand Up @@ -86,7 +86,7 @@ version( Windows )
}
else version( OSX )
{
enum clock_t CLOCKS_PER_SEC = 100;
enum clock_t CLOCKS_PER_SEC = 1_000_000; // was 100 until OSX 10.4/10.5
version (X86)
extern (C) pragma(mangle, "clock$UNIX2003") clock_t clock();
else
Expand Down

0 comments on commit 0e77501

Please sign in to comment.