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.
This commit is contained in:
Jeff Garzik 2011-03-20 22:44:25 -04:00 committed by Jeff Garzik
parent 24afd61775
commit 23e9cf91f0
6 changed files with 11 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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