Ignore:
Timestamp:
Mar 24, 2018, 4:32:26 PM (7 years ago)
Author:
bird
Message:

kmk,lib,kWorker: Console output on windows cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/msc_buffered_printf.c

    r2967 r3188  
    3939#include <conio.h>
    4040#include <malloc.h>
     41#include "console.h"
    4142
    4243#undef printf
     
    5354#endif
    5455
    55 extern size_t maybe_con_fwrite(void const *pvBuf, size_t cbUnit, size_t cUnits, FILE *pFile);
    5656
    5757
     
    9494        if (fd >= 0)
    9595        {
    96             if (isatty(fd))
     96            if (is_console(fd))
    9797            {
    9898                char *pszTmp = (char *)alloca(16384);
     
    135135        if (fd >= 0)
    136136        {
    137             if (isatty(fd))
     137            if (is_console(fd))
    138138            {
    139139                char *pszTmp = (char *)alloca(16384);
     
    182182        if (fd >= 0)
    183183        {
    184             if (isatty(fd))
     184            if (is_console(fd))
    185185            {
    186186                HANDLE hCon = (HANDLE)_get_osfhandle(fd);
Note: See TracChangeset for help on using the changeset viewer.