Fix M_PI related compilation isues on Linux

pull/14/head
Dhiru Kholia 2021-11-01 16:38:26 +05:30 zatwierdzone przez Dhiru Kholia
rodzic ee9567ab1d
commit 7e9926f1bd
4 zmienionych plików z 7 dodań i 1 usunięć

3
common/common.h 100644
Wyświetl plik

@ -0,0 +1,3 @@
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

Wyświetl plik

@ -11,6 +11,7 @@
#include "ft8/encode.h"
#include "ft8/crc.h"
#include "common/common.h"
#include "common/wave.h"
#include "common/debug.h"
#include "fft/kiss_fftr.h"

Wyświetl plik

@ -4,6 +4,7 @@
#include <math.h>
#include <stdbool.h>
#include "common/common.h"
#include "common/wave.h"
#include "common/debug.h"
#include "ft8/pack.h"

3
test.c
Wyświetl plik

@ -10,6 +10,7 @@
#include "ft8/constants.h"
#include "fft/kiss_fftr.h"
#include "common/common.h"
#include "common/debug.h"
#define LOG_LEVEL LOG_INFO
@ -155,4 +156,4 @@ int main()
test4();
return 0;
}
}