+
+void i_lhead(const char *file, int line) {
+ dIMCTX;
+
+ im_lhead(aIMCTX, file, line);
+}
+
+#else
+
+/*
+ * Logging is inactive - insert dummy functions
+ */
+
+int im_init_log(pIMCTX, const char* name,int onoff) {
+ i_clear_error();
+ i_push_error(0, "Logging disabled");
+ return 0;
+}
+
+void i_fatal(int exitcode,const char *fmt, ... ) { exit(exitcode); }
+void im_fatal(pIMCTX, int exitcode,const char *fmt, ... ) { exit(exitcode); }
+
+void
+i_loog(int level,const char *fmt, ... ) {
+}
+
+void
+im_loog(pIMCTX, int level,const char *fmt, ... ) {
+}
+
+void
+i_lhead(const char *file, int line) { }
+
+void
+im_lhead(pIMCTX, const char *file, int line) { }
+
+#endif