https://issues.dlang.org/show_bug.cgi?id=24811

--- Comment #2 from barbosso <[email protected]> ---
SDL3 with callbacks also cant compile
How to reproduce

//SDL3.c
#define __GNUC__ 8
#define SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main$
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
//

clang -c SDL3.c # compile OK
ldc -c SDL3.c   # compile ERRORS
/usr/include/SDL3/SDL_stdinc.h(4294): Error: undefined identifier
`__builtin_mul_overflow`
/usr/include/SDL3/SDL_stdinc.h(4332): Error: undefined identifier
`__builtin_add_overflow`
/usr/include/SDL3/SDL_bits.h(79): Error: undefined identifier `__builtin_clz`

--

Reply via email to