lexus2k / tinyproto

Tiny Software Protocol for communication over UART, SPI, etc
GNU General Public License v3.0
225 stars 51 forks source link

Undefined reference for sleep(0) #4

Closed alieslam closed 5 years ago

alieslam commented 5 years ago

For windows os, sleep should be Sleep with 'S' upper case, which is defined under windows.h https://github.com/lexus2k/tinyproto/blob/527e9067331baf89a9024ae36f3a9add0d8abe27/src/proto/os/mingw32/tiny_defines.h#L51

lexus2k commented 5 years ago

Hello,

I checked against another my library, and confirm, for Mingw sleep should be Sleep(). Thank you

lexus2k commented 5 years ago

Did you check 53192fa commit?

alieslam commented 5 years ago

Nope! sorry for that :grimacing: