Skip to content

Commit 830467f

Browse files
committed
specify c99
1 parent 5b87b36 commit 830467f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ jobs:
183183
cl /nologo /EHsc test.c ../opencvsharp/lib/OpenCvSharpExtern.lib /link /OUT:test.exe
184184
elif [[ "${{ runner.os }}" == macOS ]]; then
185185
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -Wl,-rpath,@loader_path -o test.exe
186+
elif [[ "${{ matrix.os }}" == "centos.7" ]]; then
187+
gcc -std=c99 test.c -L../opencvsharp/lib -lOpenCvSharpExtern -Wl,-rpath,'$ORIGIN' -o test.exe
186188
else
187-
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -Wl,-rpath,'$ORIGIN' -o test.exe
189+
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -Wl,-rpath,'$ORIGIN' -o test.exe
188190
fi
189191
ls -lR
190192
EOS

0 commit comments

Comments
 (0)