]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix build error with clang-cl on latest Windows SDK
authorFrank Lichtenheld <frank@lichtenheld.com>
Mon, 4 Aug 2025 19:50:48 +0000 (21:50 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 4 Aug 2025 19:55:15 +0000 (21:55 +0200)
Found when testing windows-2025 runner in GHA.
So switch to that to make sure the error is fixed.

Change-Id: I3046f4b09a4700001a1d9dcce802990dfa701b52
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250804195054.21729-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32513
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.github/workflows/build.yaml
src/openvpn/syshead.h

index b2bfd21c4264c25ee8f95ffd0c51b799617012c4..f7883c701d0f470c24bcf3aeeb45b80c79380fed 100644 (file)
@@ -116,7 +116,7 @@ jobs:
         arch: [x86, x64]
         test: [argv, auth_token, buffer, cryptoapi, crypto, misc, ncp, packet_id, pkt, provider, ssl, tls_crypt, user_pass]
 
-    runs-on: windows-latest
+    runs-on: windows-2025
     name: "mingw unittest ${{ matrix.test }} - ${{ matrix.arch }} - OSSL"
     steps:
       - name: Checkout OpenVPN
@@ -264,7 +264,7 @@ jobs:
       env:
         BUILD_CONFIGURATION: Release
 
-      runs-on: windows-latest
+      runs-on: windows-2025
       steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
       - uses: lukka/get-cmake@6b3e96a9bc9976b8b546346fdd102effedae0ca8 # v4.0.3
index 524923b7417d785d988b538fd208883230eca909..26a553be7f60cf639299a5499aeb5459ef3d02d8 100644 (file)
@@ -44,7 +44,7 @@
 #define srandom  srand
 #endif
 
-#ifdef _MSC_VER /* Visual Studio */
+#if defined(_MSC_VER) && !defined(__clang__) /* Microsoft compiler */
 #define __func__ __FUNCTION__
 #define __attribute__(x)
 #endif