Skip to content

btstack_base64_encoder.h using POSIX only variable type #671

@simo-scar-cob

Description

@simo-scar-cob

Describe the bug

While compiling port WinUSB on develop branch, compiler raises error for variable type: ssize_t ; used in btstack_base64_encoder.h file.
Which acutally I think is only for POSIX systems (UNIX, Linux, etc..).
On Windows the equivalent I think is SSIZE_T , defined in #include <basetsd.h>.
This fix works for me, but I think that a separation based on OS is needed.

To Reproduce

Steps to reproduce the behavior:

  1. open develop branch on Visual Studio 2022 Community
  2. run compilation for windows-winusb port

Expected behavior
Compile success

Environment: (please complete the following information):

  • Current BTstack branch: develop
  • Bluetooth Controller: CSR 8510

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions