aboutsummaryrefslogtreecommitdiff
path: root/tcccoff.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-14 17:34:07 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-14 17:34:07 +0100
commit8c56b0cf900cf244029df148f18fda5c11e27344 (patch)
tree3b6e5f6e450ce88afe2c06c3bb7cd1ee076d2194 /tcccoff.c
parent60a3ff5f2cdc1248cce683ba11db420bc2cb2311 (diff)
downloadtinycc-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 'tcccoff.c')
-rw-r--r--tcccoff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcccoff.c b/tcccoff.c
index 76262a1..2f52562 100644
--- a/tcccoff.c
+++ b/tcccoff.c
@@ -858,7 +858,7 @@ Section *FindSection(TCCState * s1, const char *sname)
return 0;
}
-ST_FUNC int tcc_load_coff(TCCState * s1, vio_fd fd)
+ST_FUNC int tcc_load_coff(TCCState * s1, int fd)
{
// tktk TokenSym *ts;
@@ -870,7 +870,7 @@ ST_FUNC int tcc_load_coff(TCCState * s1, vio_fd fd)
char name2[9];
FILHDR file_hdr; /* FILE HEADER STRUCTURE */
- f = fdopen(fd.fd, "rb");
+ f = fdopen(fd, "rb");
if (!f) {
tcc_error("Unable to open .out file for input");
}