Skip to content

Commit

Permalink
fix Issue 15457 - Symbol Undefined __lseeki64
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Mar 20, 2016
1 parent 42625ce commit 1b6cf80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion etc/c/zlib/gzlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "gzguts.h"

#if defined(_WIN32) && !defined(__BORLANDC__)
#if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__DMC__)
# define LSEEK _lseeki64
#else
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
Expand Down
4 changes: 4 additions & 0 deletions std/zlib.d
Original file line number Diff line number Diff line change
Expand Up @@ -701,3 +701,7 @@ unittest // by Artem Rebrov
assert( output[] == input[] );
}

unittest
{
static assert(__traits(compiles, etc.c.zlib.gzclose(null))); // bugzilla 15457
}

0 comments on commit 1b6cf80

Please sign in to comment.