[vlc-commits] [Git][videolan/vlc][master] vlc_fixups: protect sincos against macro substitution
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sat Jul 5 11:48:14 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
6950a5cd by Alexandre Janniaux at 2025-07-05T11:32:25+00:00
vlc_fixups: protect sincos against macro substitution
It seems that it became a macro in some files on macosx now...
../../include/vlc_fixups.h:763:6: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/simd/math.h:2459:49: note: expanded from macro 'sincos'
2459 | #define sincos(__x, __sinp, __cosp) __tg_sincos(__tg_promote1((__x))(__x), __sinp, __cosp)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tgmath.h:60:39: note: expanded from macro '__tg_promote1'
60 | #define __tg_promote1(__x) (__typeof__(__tg_promote(__x)))
| ^
In file included from ../../modules/gui/macosx/views/VLCSnowEffectView.m:25:
In file included from ../../modules/gui/macosx/main/VLCMain.h:27:
In file included from ../config.h:898:
../../include/vlc_fixups.h:763:6: error: function cannot return function type 'int (double)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/simd/math.h:2459:49: note: expanded from macro 'sincos'
2459 | #define sincos(__x, __sinp, __cosp) __tg_sincos(__tg_promote1((__x))(__x), __sinp, __cosp)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tgmath.h:60:38: note: expanded from macro '__tg_promote1'
60 | #define __tg_promote1(__x) (__typeof__(__tg_promote(__x)))
| ^
3 errors generated.
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -760,8 +760,8 @@ static const struct in6_addr in6addr_any =
#endif
#ifndef HAVE_SINCOS
-void sincos(double, double *, double *);
-void sincosf(float, float *, float *);
+void (sincos)(double, double *, double *);
+void (sincosf)(float, float *, float *);
#endif
#ifndef HAVE_REALPATH
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6950a5cd1f326709d6967ba79aba858658921125
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6950a5cd1f326709d6967ba79aba858658921125
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list