Permalink
Browse files

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...
Jeff Garzik authored and jgarzik committed Mar 21, 2011
1 parent 24afd61 commit 23e9cf91f09fa3ec364b439787f768f314780b85
Showing with 11 additions and 0 deletions.
  1. +2 −0 miner.h
  2. +1 −0 sha256_4way.c
  3. +2 −0 sha256_cryptopp.c
  4. +2 −0 sha256_generic.c
  5. +2 −0 sha256_sse2_amd64.c
  6. +2 −0 sha256_via.c
View
@@ -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
@@ -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
@@ -1,4 +1,6 @@
+#include "cpuminer-config.h"
+
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
View
@@ -18,6 +18,8 @@
*
*/
+#include "cpuminer-config.h"
+
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
View
@@ -9,6 +9,8 @@
*
*/
+#include "cpuminer-config.h"
+
#include "miner.h"
#ifdef WANT_X8664_SSE2
View
@@ -1,4 +1,6 @@
+#include "cpuminer-config.h"
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

0 comments on commit 23e9cf9

Please sign in to comment.