[Issue 24811] Cant compile C code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 16 08:17:57 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24811
--- Comment #2 from barbosso <my-ijet at mail.ru> ---
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`
--
More information about the Digitalmars-d-bugs
mailing list