Include inttypes.h instead of stdint.h

stdint.h is unavailable on some systems, such as Solaris 8
This commit is contained in:
pooler 2013-07-12 18:39:23 +02:00
parent ad88e35f54
commit 93120a697d
5 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <inttypes.h>
#include <unistd.h> #include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>

View file

@ -4,7 +4,7 @@
#include "cpuminer-config.h" #include "cpuminer-config.h"
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <inttypes.h>
#include <sys/time.h> #include <sys/time.h>
#include <pthread.h> #include <pthread.h>
#include <jansson.h> #include <jansson.h>

View file

@ -31,8 +31,8 @@
#include "miner.h" #include "miner.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <inttypes.h>
static const uint32_t keypad[12] = { static const uint32_t keypad[12] = {
0x80000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x00000280 0x80000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x00000280

2
sha2.c
View file

@ -12,7 +12,7 @@
#include "miner.h" #include "miner.h"
#include <string.h> #include <string.h>
#include <stdint.h> #include <inttypes.h>
#if defined(__arm__) && defined(__APCS_32__) #if defined(__arm__) && defined(__APCS_32__)
#define EXTERN_SHA256 #define EXTERN_SHA256

2
util.c
View file

@ -17,7 +17,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <inttypes.h>
#include <unistd.h> #include <unistd.h>
#include <jansson.h> #include <jansson.h>
#include <curl/curl.h> #include <curl/curl.h>