From 23e9cf91f09fa3ec364b439787f768f314780b85 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 20 Mar 2011 22:44:25 -0400 Subject: [PATCH] Ensure cpuminer-config.h is universally included, in *.c and *.h alike. In miner.h, this fixes an alloca-definition-related warning. For the other files, this is simply future-proofing/precaution. --- miner.h | 2 ++ sha256_4way.c | 1 + sha256_cryptopp.c | 2 ++ sha256_generic.c | 2 ++ sha256_sse2_amd64.c | 2 ++ sha256_via.c | 2 ++ 6 files changed, 11 insertions(+) diff --git a/miner.h b/miner.h index 4021a69..0d8e682 100644 --- a/miner.h +++ b/miner.h @@ -1,6 +1,8 @@ #ifndef __MINER_H__ #define __MINER_H__ +#include "cpuminer-config.h" + #include #include #include diff --git a/sha256_4way.c b/sha256_4way.c index 6d42451..82dd6ca 100644 --- a/sha256_4way.c +++ b/sha256_4way.c @@ -4,6 +4,7 @@ // tcatm's 4-way 128-bit SSE2 SHA-256 +#include "cpuminer-config.h" #include "miner.h" #ifdef WANT_SSE2_4WAY diff --git a/sha256_cryptopp.c b/sha256_cryptopp.c index 76e178c..ed83dfc 100644 --- a/sha256_cryptopp.c +++ b/sha256_cryptopp.c @@ -1,4 +1,6 @@ +#include "cpuminer-config.h" + #include #include #include diff --git a/sha256_generic.c b/sha256_generic.c index b30b326..789b20e 100644 --- a/sha256_generic.c +++ b/sha256_generic.c @@ -18,6 +18,8 @@ * */ +#include "cpuminer-config.h" + #include #include #include diff --git a/sha256_sse2_amd64.c b/sha256_sse2_amd64.c index d97d888..4784342 100644 --- a/sha256_sse2_amd64.c +++ b/sha256_sse2_amd64.c @@ -9,6 +9,8 @@ * */ +#include "cpuminer-config.h" + #include "miner.h" #ifdef WANT_X8664_SSE2 diff --git a/sha256_via.c b/sha256_via.c index 158e757..1f0596c 100644 --- a/sha256_via.c +++ b/sha256_via.c @@ -1,4 +1,6 @@ +#include "cpuminer-config.h" + #include #include #include