=================================================================== RCS file: /home/cvs/OpenXM/src/hgm/oxprint/oxprint.h,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- OpenXM/src/hgm/oxprint/oxprint.h 2015/03/24 04:59:24 1.1 +++ OpenXM/src/hgm/oxprint/oxprint.h 2017/04/01 12:01:25 1.5 @@ -1,4 +1,13 @@ -#define oxprintf(...) printf(__VA_ARGS__) -#define oxprintfe(...) fprintf(stderr,__VA_ARGS__) -#define oxflush() fflush(NULL) -#define oxabort() abort() +#include +#include +#include +#include +#include +#define oxprintf(...) Rprintf(__VA_ARGS__) +#define oxprintfe(...) REprintf(__VA_ARGS__) +#define oxflush() +#define oxabort() error("Fatal error in the shared lib hgm.\n") +#define oxstdout NULL +#define oxstdin NULL +#define oxexit(a) error("Fatal error in the shared lib hgm.\n"); +#define oxexit0(a) error("Fatal error in the shared lib hgm.\n");