Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…mport module.
  • Loading branch information...
commit 2528430d34cf4d73ebc79e63a3deaa62e04a42ef 1 parent ba4a8c0
Sean Kelly complexmath authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 std/stdio.d
7 std/stdio.d
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.