From b7cc9b68ad0df14e976fa02e5eaa51149aac2414 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Fri, 26 Nov 2010 15:46:11 -0500 Subject: Replace argp with getopt_long --- miner.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'miner.h') diff --git a/miner.h b/miner.h index 1e5af4f..dc84c1c 100644 --- a/miner.h +++ b/miner.h @@ -4,6 +4,10 @@ #include #include +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#endif + extern bool opt_protocol; extern json_t *json_rpc_call(const char *url, const char *userpass, const char *rpc_req); -- cgit v1.2.3-18-g5258