diff options
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 9c1622f09..0638b44f2 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -261,12 +261,15 @@ enum mmap_region_status mmap_region_status mmap_is_attached_or_noreserve (void *addr, size_t len); bool is_mmapped_region (caddr_t start_addr, caddr_t end_address); -inline bool flush_file_buffers (HANDLE h) +extern inline bool flush_file_buffers (HANDLE h) { return (GetFileType (h) != FILE_TYPE_PIPE) ? FlushFileBuffers (h) : true; } #define FlushFileBuffers flush_file_buffers +/* Make sure that regular ExitThread is never called */ +#define ExitThread exit_thread + /**************************** Exports ******************************/ extern "C" { |