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

[PellesC] fix _lseeki64() macro #7397

Merged
merged 1 commit into from Jul 16, 2021
Merged

[PellesC] fix _lseeki64() macro #7397

merged 1 commit into from Jul 16, 2021

Conversation

gvanem
Copy link
Contributor

@gvanem gvanem commented Jul 15, 2021

Compilng with latest version 10.0 of PellesC gives this error:

tool_cb_see.c(104): error #1050: Redefinition of macro '_lseeki64'.

It's <io.h> defines _lseeki64() as:

#define _lseeki64(h,o,m)  _lseek64(h,o,m)

PellesC' pre-processor seems to have an issue with redefining arguments inside the macro; using (h,o,m)
also works in curl. But a bit more elegant IMHO just to #undef and redefine.

@gvanem gvanem merged commit bc035f5 into master Jul 16, 2021
46 of 58 checks passed
@jay jay deleted the PellesC-lseeki64 branch Jul 16, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant