jchristi / miniz

Automatically exported from code.google.com/p/miniz
1 stars 0 forks source link

Inclusion of <time.h> happens before #define block? #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems that this code:

#if !defined(MINIZ_NO_TIME) && !defined(MINIZ_NO_ARCHIVE_APIS)
#include <time.h>
#endif

Occurs in "miniz.c" *before* the big block of commented-out #defines, meaning 
that the include happens regardless of how you've chosen to configure miniz for 
your project. This looks like a bug to me. I'm very new as a miniz user though, 
so I could be mistaken.

I noticed this in version v114_r1.7.

Original issue reported on code.google.com by emil.br...@gmail.com on 1 Oct 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Thanks Emil - fixing this now.

Original comment by richge...@gmail.com on 13 Oct 2013 at 12:33

GoogleCodeExporter commented 9 years ago
This is fixed in v1.15. Thanks for the report!

Original comment by richge...@gmail.com on 13 Oct 2013 at 5:28