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 #1259 from jmdavis/bug14546
Browse files Browse the repository at this point in the history
Fix bug# 14546 - Make the druntime documentation buildable again.
  • Loading branch information
MartinNowak committed May 9, 2015
2 parents 2c74db0 + ab3ed25 commit 972954c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/core/time.d
Expand Up @@ -2648,7 +2648,14 @@ private immutable long[__traits(allMembers, ClockType).length] _ticksPerSecond;

@trusted shared static this()
{
version(Windows)
// If we try to do anything with ClockType in the documentation build, it'll
// trigger the static assertions related to ClockType, since the
// documentation build defines all of the possible ClockTypes, which won't
// work when they're used in the static ifs, because no system supports them
// all.
version(CoreDdoc)
{}
else version(Windows)
{
long ticksPerSecond;
if(QueryPerformanceFrequency(&ticksPerSecond) != 0)
Expand Down

0 comments on commit 972954c

Please sign in to comment.