diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-03-06 13:22:59 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-03-06 13:22:59 -0500 |
commit | b31647ec5bc1979a0accfd8e89936d0d943734f1 (patch) | |
tree | f41905a5b3079764e23fd1d8a5203bdc148eb024 /src | |
parent | 6952438ad1ef40132f8c00aa850fa558fe2202c1 (diff) | |
download | libsandglass-b31647ec5bc1979a0accfd8e89936d0d943734f1.tar.xz |
Make build work on non-x86/x86_64 platforms.
Diffstat (limited to 'src')
-rw-r--r-- | src/sandglass.c | 4 | ||||
-rw-r--r-- | src/sandglass_impl.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sandglass.c b/src/sandglass.c index 7ffe511..0710788 100644 --- a/src/sandglass.c +++ b/src/sandglass.c @@ -58,7 +58,7 @@ sandglass_init_monotonic(sandglass_t *sandglass, sandglass_resolution_t res) { switch (res) { case SANDGLASS_CPUTIME: -#ifdef SANDGLASS_TSC +#if SANDGLASS_TSC sandglass->freq = sandglass_tsc_freq(); sandglass->loops = sandglass_tsc_loops(); break; @@ -120,7 +120,7 @@ sandglass_real_gettime(sandglass_t *sandglass) case SANDGLASS_MONOTONIC: switch (sandglass->resolution) { case SANDGLASS_CPUTIME: -#ifdef SANDGLASS_TSC +#if SANDGLASS_TSC sandglass->grains = sandglass_get_tsc(); break; #else diff --git a/src/sandglass_impl.h b/src/sandglass_impl.h index accb332..e10562f 100644 --- a/src/sandglass_impl.h +++ b/src/sandglass_impl.h @@ -28,7 +28,7 @@ #include "sandglass.h" #include <time.h> -#ifdef SANDGLASS_TSC +#if SANDGLASS_TSC /* Read the time stamp counter */ long sandglass_get_tsc(); /* Get the frequency of the TSC */ |