Skip to content

Issue compiling with MinGW because of argument named errno #107

@ddeclerck

Description

@ddeclerck

When compiling with MinGW, I have errors in ocpgsql.c on th function OCDB_PGSetLibErrorStatus.
The problem comes from one of the argument names : OCDB_PGSetLibErrorStatus(struct sqlca_t *st, int errno). Since errno is implemented as a macro (at least in my environment), the argument gets expanded intro something that is not an identifier (actually an expression), hence the compilation fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions