Skip to content

Conversation

@dofuuz
Copy link

@dofuuz dofuuz commented Oct 18, 2020

Build Fix for Microsoft Visual Studio.

D:\a\libsoundio\libsoundio\test\overflow.c(15): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\a\libsoundio\libsoundio\build\overflow.vcxproj]

When compiled with MSVC,

  • Replaced posix sleep() with Windows Sleep()
  • Ignore __attribute__()

@dofuuz dofuuz changed the title Visual C++ build fix of example, test MSVC build fix of example, test Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant