From 673a447f292c07ad5399211f823ec45771bea07b Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 16 Mar 2019 15:15:56 +0100 Subject: Fix c4ls_buffer and reading from stdin file "-" on windows --- examples/c4ls_buffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/c4ls_buffer.c b/examples/c4ls_buffer.c index 6bb2cca..4ec6843 100644 --- a/examples/c4ls_buffer.c +++ b/examples/c4ls_buffer.c @@ -7,6 +7,7 @@ #include #include "cc4group.h" +#include "platform/platform.h" const char* formatTime(int32_t time) { @@ -58,6 +59,8 @@ int main(int argc, char* argv[]) return EXIT_FAILURE; } + SET_BINARY(STDIN_FILENO); + size_t size = 1024; uint8_t* buffer = malloc(size); if(buffer == NULL) -- cgit v1.2.3-54-g00ecf