| Summary: | SDL should not export hidapi symbols | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | joystick | Assignee: | Ozkan Sezer <sezeroz> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
Yes, that's fine. Nice catch! |
SDL2.dll built from current hg exports hidapi symbols, it should not. Is the following patch OK for this? diff --git a/src/hidapi/hidapi/hidapi.h b/src/hidapi/hidapi/hidapi.h --- a/src/hidapi/hidapi/hidapi.h +++ b/src/hidapi/hidapi/hidapi.h @@ -29,7 +29,7 @@ #include <wchar.h> -#if defined(_WIN32) && !defined(NAMESPACE) +#if defined(_WIN32) && !defined(NAMESPACE) && (0) /* SDL: don't export hidapi syms */ #define HID_API_EXPORT __declspec(dllexport) #define HID_API_CALL #else