Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.
  • Loading branch information...
commit 23e9cf91f09fa3ec364b439787f768f314780b85 1 parent 24afd61
Jeff Garzik authored Jeff Garzik committed
2  miner.h
... ... @@ -1,6 +1,8 @@
1 1 #ifndef __MINER_H__
2 2 #define __MINER_H__
3 3
  4 +#include "cpuminer-config.h"
  5 +
4 6 #include <stdbool.h>
5 7 #include <stdint.h>
6 8 #include <sys/time.h>
1  sha256_4way.c
@@ -4,6 +4,7 @@
4 4
5 5 // tcatm's 4-way 128-bit SSE2 SHA-256
6 6
  7 +#include "cpuminer-config.h"
7 8 #include "miner.h"
8 9
9 10 #ifdef WANT_SSE2_4WAY
2  sha256_cryptopp.c
... ... @@ -1,4 +1,6 @@
1 1
  2 +#include "cpuminer-config.h"
  3 +
2 4 #include <stdint.h>
3 5 #include <stdbool.h>
4 6 #include <string.h>
2  sha256_generic.c
@@ -18,6 +18,8 @@
18 18 *
19 19 */
20 20
  21 +#include "cpuminer-config.h"
  22 +
21 23 #include <stdint.h>
22 24 #include <stdbool.h>
23 25 #include <stdlib.h>
2  sha256_sse2_amd64.c
@@ -9,6 +9,8 @@
9 9 *
10 10 */
11 11
  12 +#include "cpuminer-config.h"
  13 +
12 14 #include "miner.h"
13 15
14 16 #ifdef WANT_X8664_SSE2
2  sha256_via.c
... ... @@ -1,4 +1,6 @@
1 1
  2 +#include "cpuminer-config.h"
  3 +
2 4 #include <stdint.h>
3 5 #include <stdlib.h>
4 6 #include <string.h>

0 comments on commit 23e9cf9

Please sign in to comment.
Something went wrong with that request. Please try again.