Skip to content

Commit

Permalink
Correct Z_NULL definition to be a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-lang-sociomantic committed Nov 6, 2017
1 parent 1f92ebe commit e66b4e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/c/zlib.d
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ enum
}
/* The deflate compression method (the only one supported in this version) */

const int Z_NULL = 0; /* for initializing zalloc, zfree, opaque */
/// for initializing zalloc, zfree, opaque (extern(D) for mangling)
extern(D) immutable void* Z_NULL = null;

/* basic functions */

Expand Down

0 comments on commit e66b4e1

Please sign in to comment.