From e68615b85f409bfbe3e2269c77ab9aa9ae933cea Mon Sep 17 00:00:00 2001 From: nicolas-f Date: Wed, 2 Oct 2024 16:11:54 +0200 Subject: [PATCH] solve issue with winsockapi define https://stackoverflow.com/questions/1372480/c-redefinition-header-files-winsock2-h --- .github/workflows/sub_buildWindows.yml | 1 + src/isimpa/3dengine/Core/Objet3D.h | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/sub_buildWindows.yml b/.github/workflows/sub_buildWindows.yml index d94eea83..2471e2c4 100644 --- a/.github/workflows/sub_buildWindows.yml +++ b/.github/workflows/sub_buildWindows.yml @@ -88,6 +88,7 @@ jobs: - name: Cache CPM dependency packages uses: actions/cache@v3 with: + save-always: true path: | ${{ env.CPM_SOURCE_CACHE }} key: ${{ runner.os }}-isimpa diff --git a/src/isimpa/3dengine/Core/Objet3D.h b/src/isimpa/3dengine/Core/Objet3D.h index d7be9a1f..7863603d 100644 --- a/src/isimpa/3dengine/Core/Objet3D.h +++ b/src/isimpa/3dengine/Core/Objet3D.h @@ -41,6 +41,7 @@ */ #ifdef _WINDOWS +#define _WINSOCKAPI_ #include #endif #include "Material.h"