Permalink
Browse files

std.stdio will declare fopen64 for linux if it isn't declared by an i…

…mport module.
  • Loading branch information...
1 parent ba4a8c0 commit 2528430d34cf4d73ebc79e63a3deaa62e04a42ef @complexmath complexmath committed Mar 31, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 std/stdio.d
View
7 std/stdio.d
@@ -105,6 +105,13 @@ else version (GCC_IO)
size_t size, size_t n, FILE *stream);
}
+ version (linux)
+ {
+ // declare fopen64 if not already
+ static if (!is(typeof(fopen64)))
+ extern (C) FILE* fopen64(in char*, in char*);
+ }
+
alias fputc_unlocked FPUTC;
alias fputwc_unlocked FPUTWC;
alias fgetc_unlocked FGETC;

0 comments on commit 2528430

Please sign in to comment.