From 37f7a02ac4865953868a00c9216d59ec0640dc56 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 14 May 2021 15:40:58 -0700 Subject: [PATCH] sfio: remove uwin specific handling The indirection of the data through the IAT is implicitly handled by modern linkers and compilers when the data symbol is annotated with `__declspec(dll{import,export})`. This removes the support for the older toolchains as part of the work to properly annotate symbols for improvements to the Windows port. --- lib/sfio/sfio.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index a4a0f60a8..89a8bee03 100644 --- a/lib/sfio/sfio.h +++ b/lib/sfio/sfio.h @@ -272,15 +272,6 @@ extern "C" { EXTERN extern Sfio_t _Sfstderr; #undef EXTERN -#if defined(_DLL) && defined(_DLL_INDIRECT_DATA) -/* The Uwin shared library environment requires these to be defined - in a global structure set up by the Uwin start-up procedure. -*/ -#define sfstdin ((Sfio_t*)_ast_dll->_ast_stdin) -#define sfstdout ((Sfio_t*)_ast_dll->_ast_stdout) -#define sfstderr ((Sfio_t*)_ast_dll->_ast_stderr) -#endif - extern Sfio_t *sfnew(Sfio_t *, void *, size_t, int, int); extern Sfio_t *sfopen(Sfio_t *, const char *, const char *); -- 2.40.0