From: Tony Cook <tony@develop-help.com>
Date: Mon, 6 Aug 2012 13:08:59 +0000 (+1000)
Subject: hide the i_push_errorf() prototype for IMAGER_NO_CONTEXT
X-Git-Tag: v0.93_02~49
X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/feec0f9c8baea2b5125483e46a3d619f11d3c3b7

hide the i_push_errorf() prototype for IMAGER_NO_CONTEXT

since you end up using the i_get_context() instead of the local
dIMCTX* or pIMCTX context
---

diff --git a/imerror.h b/imerror.h
index e4a73189..11f55ded 100644
--- a/imerror.h
+++ b/imerror.h
@@ -19,7 +19,9 @@ extern int i_set_errors_fatal(int new_fatal);
 extern i_errmsg *i_errors(void);
 
 extern void im_push_error(pIMCTX, int code, char const *msg);
+#ifndef IMAGER_NO_CONTEXT
 extern void i_push_errorf(int code, char const *fmt, ...) I_FORMAT_ATTR(2, 3);
+#endif
 extern void im_push_errorf(pIMCTX, int code, char const *fmt, ...) I_FORMAT_ATTR(3, 4);
 extern void im_push_errorvf(im_context_t ctx, int code, char const *fmt, va_list);
 extern void im_clear_error(pIMCTX);