Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/test/cmake/find_modules/test_sdl3.c
6168 views
1
// Include emscripten/version.h to ensure that the in-tree
2
// include directory has not been added to the include path.
3
#include <emscripten/version.h>
4
#include <SDL3/SDL.h>
5
6
int main() {
7
int compiled = SDL_VERSION;
8
SDL_Log("SDL version: %d.%d.%d\n",
9
SDL_VERSIONNUM_MAJOR(compiled),
10
SDL_VERSIONNUM_MINOR(compiled),
11
SDL_VERSIONNUM_MICRO(compiled));
12
return 0;
13
}
14
15