diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-10-12 23:50:47 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-10-12 23:50:47 +0200 |
commit | fd68b8e874c8b3b134d43dd43cc1ce9bf8a99b3e (patch) | |
tree | 66c9826a4c35b393a7c614a54a95e7f87a847032 /darwin-eprintf.c | |
parent | ca08818bbff9d5bbefaba5971dc81bbea128dfa2 (diff) |
Enabling cross-compilation for Darwin. Haven't tested under the real thing yet though. The eprintf() thingy seems odd.
Diffstat (limited to 'darwin-eprintf.c')
-rw-r--r-- | darwin-eprintf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/darwin-eprintf.c b/darwin-eprintf.c new file mode 100644 index 0000000..d5b2553 --- /dev/null +++ b/darwin-eprintf.c @@ -0,0 +1,7 @@ +#include <stdio.h> +#include <stdlib.h> + +void __eprintf(const char * msg, const char * file, unsigned line, const char * e) { + fprintf(stderr, msg, file, line, e); + abort(); +} |