mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 22:15:40 +01:00
Use stdbool.h rather than our own bool definition.
This commit is contained in:
@@ -22,17 +22,12 @@
|
||||
|
||||
#include <hackrf.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#ifndef bool
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#define CLOCK_UNDEFINED 0xFF
|
||||
#define REGISTER_INVALID 32767
|
||||
|
||||
|
||||
@@ -24,17 +24,12 @@
|
||||
|
||||
#include <hackrf.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#ifndef bool
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#define REGISTER_INVALID 32767
|
||||
|
||||
int parse_int(char* s, uint32_t* const value)
|
||||
|
||||
@@ -22,17 +22,12 @@
|
||||
|
||||
#include <hackrf.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef bool
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#define FREQ_MIN_MHZ (0) /* 0 MHz */
|
||||
#define FREQ_MAX_MHZ (7250) /* 7250 MHz */
|
||||
|
||||
|
||||
@@ -23,18 +23,13 @@
|
||||
|
||||
#include <hackrf.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef bool
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN64
|
||||
typedef int64_t ssize_t;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <hackrf.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -38,12 +39,6 @@
|
||||
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
|
||||
#ifndef bool
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <windows.h>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <hackrf.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -38,12 +39,6 @@
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifndef bool
|
||||
typedef int bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user