diff --git a/code/logic/fossil/io/stream.h b/code/logic/fossil/io/stream.h index 3b65b12..04116e8 100644 --- a/code/logic/fossil/io/stream.h +++ b/code/logic/fossil/io/stream.h @@ -17,10 +17,6 @@ #include #include -#define FOSSIL_STDIN stdin -#define FOSSIL_STDOUT stdout -#define FOSSIL_STDERR stderr - #ifdef __cplusplus extern "C" { #endif @@ -33,6 +29,14 @@ typedef struct { char filename[500]; // Array to store the filename } fossil_fstream_t; +extern fossil_fstream_t *FOSSIL_STDIN; +extern fossil_fstream_t *FOSSIL_STDOUT; +extern fossil_fstream_t *FOSSIL_STDERR; + +#define FOSSIL_STDIN (FOSSIL_STDIN) +#define FOSSIL_STDOUT (FOSSIL_STDOUT) +#define FOSSIL_STDERR (FOSSIL_STDERR) + /** * Reopen a stream with a new file. *