| Summary: | windows joystick and haptic c source files: wrong guards | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Martin Gerhardy <martin.gerhardy> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.1 | Keywords: | target-2.0.4 |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Martin Gerhardy
2015-04-07 17:00:11 UTC
What should be there? I see "#if SDL_JOYSTICK_DINPUT" (etc) on each of the Windows files. I might be misunderstanding the issue here. --ryan. The "problem" is that there are header inclusions above the guard(s). I think there should only be one header inclusion above the guards - the one that defines the guards. Some of the "unprotected" header inclusions include windows.h at some place without a windows guard (which is fine - that's not my issue). So basically it's all about moving the header inclusions into the guarded part except the one that defines the guard. (In reply to Martin Gerhardy from comment #2) > So basically it's all about moving the header inclusions into the guarded > part except the one that defines the guard. Oh, I understand now. Ok, I'll try to fix that for 2.0.4. --ryan. Should be fixed by https://hg.libsdl.org/SDL/rev/9753468b5c0e, please let me know if it still causes you problems. --ryan. |