Skip to content

Commit abdd11d

Browse files
committed
Check windows
1 parent 32db660 commit abdd11d

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
1215

1316
steps:
1417
- uses: actions/checkout@v4
1518

1619
- name: Build library
20+
shell: bash
1721
run: make lib
1822

1923
- name: Build and run tests
24+
shell: bash
2025
run: make test

src/miniexpr.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ For log = natural log do nothing (NumPy compatible)
4646
For log = base 10 log comment the next line. */
4747
#define ME_NAT_LOG
4848

49+
#if defined(_MSC_VER)
50+
// Enable C99 complex support on MSVC
51+
#ifndef _CRT_USE_C99_COMPLEX
52+
#define _CRT_USE_C99_COMPLEX
53+
#endif
54+
#endif
55+
4956
#include "miniexpr.h"
5057
#include <stdlib.h>
5158
#include <math.h>

0 commit comments

Comments
 (0)