From 791bbc33357205e460163e38143adfbd7165a60f Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 18 Dec 2011 09:41:15 +0100 Subject: [PATCH] avoid "errno" argument name On mingw, errno is defined as (*_errno()) in stdlib.h Signed-off-by: Sven Verdoolaege --- include/isl/ctx.h | 2 +- isl_ctx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/isl/ctx.h b/include/isl/ctx.h index a7727230..57ddc651 100644 --- a/include/isl/ctx.h +++ b/include/isl/ctx.h @@ -124,7 +124,7 @@ typedef struct isl_ctx isl_ctx; code; \ } while (0) -void isl_handle_error(isl_ctx *ctx, int errno, const char *msg, +void isl_handle_error(isl_ctx *ctx, int error, const char *msg, const char *file, int line); #define isl_assert4(ctx,test,code,errno) \ diff --git a/isl_ctx.c b/isl_ctx.c index 6f999502..3b145097 100644 --- a/isl_ctx.c +++ b/isl_ctx.c @@ -11,10 +11,10 @@ #include #include -void isl_handle_error(isl_ctx *ctx, int errno, const char *msg, +void isl_handle_error(isl_ctx *ctx, int error, const char *msg, const char *file, int line) { - isl_ctx_set_error(ctx, errno); + isl_ctx_set_error(ctx, error); switch (isl_options_get_on_error(ctx)) { case ISL_ON_ERROR_WARN: -- 2.11.4.GIT