avoid "errno" argument name
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 18 Dec 2011 08:41:15 +0000 (09:41 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 18 Dec 2011 08:41:15 +0000 (09:41 +0100)
On mingw, errno is defined as (*_errno()) in stdlib.h

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/isl/ctx.h
isl_ctx.c

index a772723..57ddc65 100644 (file)
@@ -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)                               \
index 6f99950..3b14509 100644 (file)
--- a/isl_ctx.c
+++ b/isl_ctx.c
 #include <isl/vec.h>
 #include <isl/options.h>
 
-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: