Browse Source

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.
nfactor-troky
Jeff Garzik 14 years ago committed by Jeff Garzik
parent
commit
23e9cf91f0
  1. 2
      miner.h
  2. 1
      sha256_4way.c
  3. 2
      sha256_cryptopp.c
  4. 2
      sha256_generic.c
  5. 2
      sha256_sse2_amd64.c
  6. 2
      sha256_via.c

2
miner.h

@ -1,6 +1,8 @@
#ifndef __MINER_H__ #ifndef __MINER_H__
#define __MINER_H__ #define __MINER_H__
#include "cpuminer-config.h"
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <sys/time.h> #include <sys/time.h>

1
sha256_4way.c

@ -4,6 +4,7 @@
// tcatm's 4-way 128-bit SSE2 SHA-256 // tcatm's 4-way 128-bit SSE2 SHA-256
#include "cpuminer-config.h"
#include "miner.h" #include "miner.h"
#ifdef WANT_SSE2_4WAY #ifdef WANT_SSE2_4WAY

2
sha256_cryptopp.c

@ -1,4 +1,6 @@
#include "cpuminer-config.h"
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>

2
sha256_generic.c

@ -18,6 +18,8 @@
* *
*/ */
#include "cpuminer-config.h"
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>

2
sha256_sse2_amd64.c

@ -9,6 +9,8 @@
* *
*/ */
#include "cpuminer-config.h"
#include "miner.h" #include "miner.h"
#ifdef WANT_X8664_SSE2 #ifdef WANT_X8664_SSE2

2
sha256_via.c

@ -1,4 +1,6 @@
#include "cpuminer-config.h"
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

Loading…
Cancel
Save