Mercurial > hg > tweakathon2ios
changeset 52:89944ab3e129 tip
fix oF linker errors ios8
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 03 Feb 2015 13:18:23 +0000 |
parents | 028b56c22a82 |
children | |
files | linkfix.c |
diffstat | 1 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linkfix.c Tue Feb 03 13:18:23 2015 +0000 @@ -0,0 +1,34 @@ +#include <stdio.h> +#include <unistd.h> +#include <string.h> +#include <stdlib.h> + +FILE *fopen$UNIX2003( const char *filename, const char *mode ) +{ + return fopen(filename, mode); +} + +int fputs$UNIX2003(const char *res1, FILE *res2){ + return fputs(res1,res2); +} + +int nanosleep$UNIX2003(int val){ + return usleep(val); +} + +char* strerror$UNIX2003(int errornum){ + return strerror(errornum); +} + +double strtod$UNIX2003(const char *nptr, char **endptr){ + return strtod(nptr, endptr); +} + +size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d ) +{ + return fwrite(a, b, c, d); +} +time_t mktime$UNIX2003(struct tm * a) +{ + return mktime(a); +} \ No newline at end of file