Skip to content

Commit 928576e

Browse files
committed
dispatch: follow os/base.h inclusion pattern
There are three different `base.h` headers, one meant for Apple platforms (`base.h`), one for Windows (`generic_win_base.h`), and one for Unix systems (`generic_unix_base.h`). Conditionally include the correct one for the build target as we do throughout the rest of dispatch for portability.
1 parent 4d65ed4 commit 928576e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

os/clock.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#ifndef __OS_CLOCK__
22
#define __OS_CLOCK__
33

4+
#if defined(__APPLE__)
45
#include <os/base.h>
6+
#elif defined(_WIN32)
7+
#include <os/generic_win_base.h>
8+
#elif defined(__unix__)
9+
#include <os/generic_unix_base.h>
10+
#endif
11+
512
#include <stdint.h>
613

714
/*

0 commit comments

Comments
 (0)