MIDAS
Loading...
Searching...
No Matches
fakezlib.cxx
Go to the documentation of this file.
1//
2// Fake libz.a for cross-compilation where cross-built libz.a is not available
3//
4
5#undef NDEBUG // midas requires assert() to be always enabled
6
7#include <stdio.h>
8#include <assert.h>
9#include <zlib.h>
10
11ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode))
12{
13 assert(!"fakezlib.cxx::gzopen(): libz.a is not availble in this build of MIDAS!");
14}
15
16ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len))
17{
18 assert(!"fakezlib.cxx::gzread(): libz.a is not availble in this build of MIDAS!");
19}
20
22{
23 assert(!"fakezlib.cxx::gzclose(): libz.a is not availble in this build of MIDAS!");
24}
25
26// end
27
ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode))
Definition fakezlib.cxx:11
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24