Skip to content

Commit 7dbb3ef

Browse files
authored
Fix c-cpp CI for Windows (#69)
1 parent feb9c39 commit 7dbb3ef

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/c-cpp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: configure
14-
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
14+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
1515
- name: build
1616
run: cmake --build build
1717
- name: test
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v2
2424
- name: configure
25-
run: mkdir build && cd build && cmake ..
25+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
2626
- name: build
2727
run: cmake --build build
2828
- name: test
@@ -33,7 +33,7 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v2
3535
- name: configure
36-
run: mkdir build && cd build && cmake ..
36+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
3737
- name: build
3838
run: cmake --build build --config Debug
3939
- name: test

IsoLib/t35_tool/sources/SMPTE_ST2094_50.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
#include "SMPTE_ST2094_50.hpp"
44
#include <cstdarg>
55
#include <cstdio>
6+
#include <cmath>
67
#include <bitset>
78
#include <numeric>
89

10+
#ifndef M_PI
11+
#define M_PI 3.1415926535897932384626433832
12+
#endif
13+
914
/* *********************************** LOCAL LOGGING FUNCTIONS
1015
* *******************************************************************************************/
1116

0 commit comments

Comments
 (0)