I just simply downloaded your code and converted to VS2017 solution. There errors and warnings. Iam using vs as my IDE so I could commit a pr. I will wrote my changes here.
zconf.h is actually not used in this code, thus it can be removed. Which is indeed used is time.h. Using time.h is more friendly in cross platform compilation.
Use #ifdef instead of #if defined to improve cross platform experiences. In the begining of layers.h
I just simply downloaded your code and converted to VS2017 solution. There errors and warnings. Iam using vs as my IDE so I could commit a pr. I will wrote my changes here.
zconf.h is actually not used in this code, thus it can be removed. Which is indeed used is time.h. Using time.h is more friendly in cross platform compilation.
Use #ifdef instead of #if defined to improve cross platform experiences. In the begining of layers.h
ifdef USE_SIMD
else
endif
and another place in that file:
ifdef USE_SIMD
else
endif
Do note that I renamed some variables (and add mul) to avoid conflict with C++ keywords when compiled with C++ code
Changed fopen to fopen_s, same to printf and other deprecated functions
Explicitly type casting
In printf_s, change %ld to %lld since you used long long int