Ignore:
Timestamp:
04/23/12 12:53:37 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Work around bugs in win32 while using stdvios (pr0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_stdvios.h

    r5381 r5479  
    3939#include "libroar.h" 
    4040 
     41#ifndef ROAR_TARGET_WIN32 
    4142extern struct roar_vio_calls * roar_stdin; 
    4243extern struct roar_vio_calls * roar_stdout; 
    4344extern struct roar_vio_calls * roar_stderr; 
     45#else 
     46struct roar_vio_calls ** libroar_stdvio_win32workaround(int fh); 
     47#define roar_stdin  (*libroar_stdvio_win32workaround(0)) 
     48#define roar_stdout (*libroar_stdvio_win32workaround(1)) 
     49#define roar_stderr (*libroar_stdvio_win32workaround(2)) 
     50#endif 
    4451 
    4552#endif 
Note: See TracChangeset for help on using the changeset viewer.