@@ -17,9 +17,12 @@
#include <math.h>
#ifdef HAVE_CURSES
+// Must be before stdbool, since pdcurses typedefs bool :/
#include <curses.h>
#endif
+#include <stdbool.h>
+
#include "miner.h"
#include "ADL/adl_sdk.h"
#include "compat.h"
@@ -1,6 +1,9 @@
#ifndef __ADL_H__
#define __ADL_H__
#ifdef HAVE_ADL
bool adl_active;
bool opt_reorder;
const int opt_targettemp;
@@ -14,6 +14,8 @@
#include <limits.h>
#include <pthread.h>
+#include <stdint.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -13,6 +13,8 @@
#ifdef USE_AVALON
#define AVALON_TIME_FACTOR 10
#define AVALON_RESET_FAULT_DECISECONDS 1
#define AVALON_MINER_THREADS 1
@@ -24,6 +24,8 @@
#include "config.h"
#include "deviceapi.h"
#include "libbitfury.h"
#include "spidevc.h"
@@ -13,6 +13,10 @@
*/
#include "fpgautils.h"
#include "logging.h"
@@ -1,6 +1,8 @@
#ifndef BFG_DRIVER_BIGPIC_H
#define BFG_DRIVER_BIGPIC_H
#define BPM_BAUD 115200
struct bigpic_identity
@@ -13,6 +13,7 @@
#include <ctype.h>
#include <stdint.h>
#include <strings.h>
@@ -27,6 +27,8 @@
#include <unistd.h>
#include <sha2.h>
@@ -7,6 +7,11 @@
* any later version. See COPYING for more details.
+#include "config.h"
#include "dynclock.h"
@@ -9,6 +9,8 @@
#include "icarus-common.h"
@@ -38,6 +38,8 @@
#include "driver-bitfury.h"
@@ -12,6 +12,8 @@
#include <stdarg.h>
@@ -11,6 +11,7 @@
#include <stdbool.h>
@@ -16,6 +16,7 @@
#ifndef __DEVICE_GPU_H__
#define __DEVICE_GPU_H__
@@ -16,6 +16,8 @@
#include <libusb.h>
@@ -16,6 +16,9 @@
@@ -10,6 +10,9 @@
@@ -12,6 +12,7 @@
#ifdef HAVE_OPENCL
#include <inttypes.h>
@@ -1,5 +1,8 @@
#ifndef __FINDNONCE_H__
#define __FINDNONCE_H__
@@ -18,6 +18,7 @@
#include <stdlib.h>
@@ -19,6 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#define hex_print(p) applog(LOG_DEBUG, "%s", p)
#ifndef __LIBBITFURY_H__
#define __LIBBITFURY_H__
@@ -25,6 +25,8 @@
#include <string.h>
#ifndef __LIBZTEX_H__
#define __LIBZTEX_H__
@@ -2,6 +2,7 @@
#define BFG_MCP2210_H
enum mcp2210_gpio_direction {
MGD_OUTPUT,
#ifdef USE_UNICODE
#define PDC_WIDE
#include <signal.h>
#ifndef SCRYPT_H
#define SCRYPT_H
#ifdef USE_SCRYPT
@@ -34,6 +34,7 @@
#include "sha2.h"
@@ -33,6 +33,9 @@
#ifndef SHA2_H
@@ -5,10 +5,13 @@
// tcatm's 4-way 128-bit SSE2 SHA-256
#include "driver-cpu.h"
#ifdef WANT_SSE2_4WAY
#include <assert.h>
@@ -10,10 +10,13 @@
//
#ifdef WANT_ALTIVEC_4WAY
*
#ifdef WANT_X8664_SSE2
#ifdef WANT_X8632_SSE2
#ifdef WANT_X8664_SSE4
@@ -9,8 +9,11 @@
@@ -14,6 +14,7 @@
#define __UTIL_H__