#ifndef __READ_XLS_CRAN_H
#define __READ_XLS_CRAN_H

/* Mask printf and fprintf for CMD check */
#include <Rinternals.h>
#define printf Rprintf

#ifdef __cplusplus
extern "C" {
#include <cassert>
#endif

void Rprintf2(FILE * stream, const char *format, ...);

#ifdef __cplusplus
}
#endif
#define fprintf Rprintf2
#undef stderr
#define stderr NULL

#undef assert
#define assert(X) if (X) {}
#define exit assert

#endif
