diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-01-14 17:34:07 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-01-14 17:34:07 +0100 |
| commit | 8c56b0cf900cf244029df148f18fda5c11e27344 (patch) | |
| tree | 3b6e5f6e450ce88afe2c06c3bb7cd1ee076d2194 /tccpe.c | |
| parent | 60a3ff5f2cdc1248cce683ba11db420bc2cb2311 (diff) | |
| download | tinycc-8c56b0cf900cf244029df148f18fda5c11e27344.tar.gz tinycc-8c56b0cf900cf244029df148f18fda5c11e27344.tar.bz2 | |
Revert "Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable."
This reverts commit 59e18aee0e509a3ca75dbe6f909e18c1d17893d1.
tcc is being stabilized now in order to do a new release soon.
Therefore, such a change is not appropriate now.
Diffstat (limited to 'tccpe.c')
| -rw-r--r-- | tccpe.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1638,9 +1638,9 @@ static int pe_load_dll(TCCState *s1, const char *dllname, FILE *fp) } /* ------------------------------------------------------------- */ -ST_FUNC int pe_load_file(struct TCCState *s1, const char *filename, vio_fd fd) +ST_FUNC int pe_load_file(struct TCCState *s1, const char *filename, int fd) { - FILE *fp = fdopen(dup(fd.fd), "rb"); + FILE *fp = fdopen(dup(fd), "rb"); int ret = -1; char buf[10]; if (fp) { |
