#include int main() { // compile flags must have the 10-th bit set if compiled with ZLIB_WINAPI printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n", ZLIB_VERSION, ZLIB_VERNUM, zlibCompileFlags()); #ifdef ZLIB_WINAPI if ((zlibCompileFlags() & (1 << 10)) == 0) { return 1; } #else if ((zlibCompileFlags() & (1 << 10)) != 0) { return 1; } #endif return 0; }