diff options
author | Jeff Garzik <jeff@garzik.org> | 2011-03-20 22:44:25 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2011-03-20 22:44:25 -0400 |
commit | 23e9cf91f09fa3ec364b439787f768f314780b85 (patch) | |
tree | 21ee62f827e5447d76b2ff0a57c0d5cd1d11795d | |
parent | 24afd61775b957009619e0d3a5948492bdf5539e (diff) |
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.
-rw-r--r-- | miner.h | 2 | ||||
-rw-r--r-- | sha256_4way.c | 1 | ||||
-rw-r--r-- | sha256_cryptopp.c | 2 | ||||
-rw-r--r-- | sha256_generic.c | 2 | ||||
-rw-r--r-- | sha256_sse2_amd64.c | 2 | ||||
-rw-r--r-- | sha256_via.c | 2 |
6 files changed, 11 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef __MINER_H__ #define __MINER_H__ +#include "cpuminer-config.h" + #include <stdbool.h> #include <stdint.h> #include <sys/time.h> 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 <stdint.h> #include <stdbool.h> #include <string.h> 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 <stdint.h> #include <stdbool.h> #include <stdlib.h> 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 <stdint.h> #include <stdlib.h> #include <string.h> |