Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conflict between FARPROC definition and minwindef.h
minwindef.h defines FARPROC without (void) argument list, so if it is already included when volk.c is compiled via VOLK_IMPLEMENTATION, gcc will emit an error (MSVC handles this mismatch fine). Unfortunately, simply removing (void) results in a warning with Wstrict-prototypes even when volk.c is compiled as standalone. We could disable the warning with a pragma but for now we could simply reuse FARPROC definition from minwindef.h if it's already included.
- Loading branch information
8b7f11b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for fixing this! I was adding so much mess around to fix this error, but I'm so glad it was just a simple change for Volk.