Skip to content

Commit

Permalink
Fixed another stupid bug, this time it's not the compiler's fault tho…
Browse files Browse the repository at this point in the history
…ugh. (#25)
  • Loading branch information
JonathanHenson authored Jun 3, 2020
1 parent 1fea5fd commit b6d35a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/intel/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include <aws/checksums/private/cpuid.h>
#include <stdint.h>

#if defined(__x86_64__) && (defined(__clang__) || !(defined(__GNUC__) && defined(DEBUG_BUILD)))
#if defined(__x86_64__) && \
(defined(__clang__) || !((defined(__GNUC__)) && ((__GNUC__ == 4 && __GNUC_MINOR__ < 4) || defined(DEBUG_BUILD))))

static int32_t s_cpuid_output = 0;
static int s_cpuid_ran = 0;
Expand All @@ -38,4 +39,5 @@ int aws_checksums_do_cpu_id(int32_t *cpuid) {
return 1;
}

#endif /* defined(__x86_64__) && !(defined(__GNUC__) && defined(DEBUG_BUILD)) */
#endif /* defined(__x86_64__) && (defined(__clang__) || !((defined(__GNUC__)) && ((__GNUC__ == 4 && __GNUC_MINOR__ < \
4) || defined(DEBUG_BUILD)))) */

0 comments on commit b6d35a1

Please sign in to comment.