britzl / defold-lfs

LuaFileSystem port to a Defold native extension
MIT License
10 stars 3 forks source link

Error when building for Windows #5

Closed britzl closed 1 month ago

britzl commented 1 month ago

Reported on the forum: https://forum.defold.com/t/editor-suddenly-linting-throwing-errors-and-crashes-build/77180

/lfs/src/lfs.c
Line 71: In file included from upload/lfs/src/lfs.c:71:
In file included from /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include/dmsdk/sdk.h:19:
In file included from /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include/dmsdk/engine/extension.h:19:
In file included from /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include/dmsdk/dlib/webserver.h:18:
In file included from /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include/dmsdk/dlib/socket.h:19:
In file included from /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include/dmsdk/dlib/sockettypes.h:21:
In file included from /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include/dmsdk/dlib/sockettypes_win32.h:19:
In file included from /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.20348.0/um/WinSock2.h:116:
redefinition of ‘sockaddr’
240 | typedef struct sockaddr {
| ^
britzl commented 1 month ago

Closed via https://github.com/britzl/defold-lfs/commit/85518b9c3e4ee471d966d98c80d25dda7940ce79