use own main func?

Hi,

How to use my own main() from stdio.h instead of sdl3 conflicting, how can it be done?

tried to do so from an example, helloc:

#define SDL_MAIN_USE_CALLBACKS 1  /* use the callbacks instead of main() */
#include "stdio.h"
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <SDL3_ttf/SDL_ttf.h>
[…]
int main() {
printf(“hello world”);
}

compiler":

$ emcc -sSINGLE_FILE --shell-file shell.html -sUSE_SDL=3 -sUSE_SDL_TTF=3 --embed-file CalSans-Regular.ttf main.c -o index.html
emcc: warning: sdl3 port is still experimental [-Wexperimental]
main.c:97:5: error: conflicting types for ‘SDL_main’
97 | int main() {
| ^
/home/alek/.cache/emscripten/sysroot/include/SDL3/SDL_main_impl.h:147:21: note: expanded from macro ‘main’
147 | #define main SDL_main
| ^
/home/alek/.cache/emscripten/sysroot/include/SDL3/SDL_main_impl.h:57:17: note: previous definition is here
57 | int SDL_main(int argc, char **argv)

Delete this line and it should work.

Deep technical explanation is here:

https://wiki.libsdl.org/SDL3/README-main-functions