Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling with MinGW because of argument named errno #107

Open
ddeclerck opened this issue Oct 10, 2023 · 0 comments
Open

Issue compiling with MinGW because of argument named errno #107

ddeclerck opened this issue Oct 10, 2023 · 0 comments

Comments

@ddeclerck
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant