We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I'm getting implicit declaration errors after updating from SDL2 to SDL3 + sdl2-compat, e.g.
share/audio.c: In function ‘voice_step’: share/audio.c:65:32: error: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration] 65 | #define LOG_VOLUME(v) ((float) pow((double) (v), 2.0)) | ^~~ share/audio.c:105:40: note: in expansion of macro ‘LOG_VOLUME’ 105 | short M = (short) (LOG_VOLUME(V->amp) * volume * buffer[i]); | ^~~~~~~~~~ share/audio.c:30:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’ 29 | #include "log.h" +++ |+#include <math.h> 30 | share/glext.c: In function ‘glext_init’: share/glext.c:131:5: error: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration] 131 | memset(&gli, 0, sizeof (struct gl_info)); | ^~~~~~ share/glext.c:20:1: note: include ‘<string.h>’ or provide a declaration of ‘memset’ 19 | #include "log.h" +++ |+#include <string.h> 20 | share/glext.c:131:5: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch] 131 | memset(&gli, 0, sizeof (struct gl_info)); | ^~~~~~ share/glext.c:131:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’ share/glext.c:106:5: error: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration] 106 | memcpy(&fun, &ptr, sizeof (void *)); \ | ^~~~~~
The text was updated successfully, but these errors were encountered:
Compiler version?
Sorry, something went wrong.
Actually I guess it's just that we missed some includes and SDL used to include them incidentally but no longer does. I'll commit a fix later.
6de282e
No branches or pull requests
I'm getting implicit declaration errors after updating from SDL2 to SDL3 + sdl2-compat, e.g.
The text was updated successfully, but these errors were encountered: