mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
FS-8047: [build] fix build errors in mod_rtmp, mod_oreka, and mod_sangoma_codec due to using __FUNCTION__ on newer compilers
This commit is contained in:
1 parent
15fb6c6546
commit
451b6e393d
4 files changed
+11
-4
No files matched your search
@@ -454,7 +454,7 @@ static switch_bool_t oreka_audio_callback(switch_media_bug_t *bug, void *user_da
|
||||
for (i = 0; i < linear_len / sizeof(int16_t); i++) {
|
||||
pcmu_data[i] = linear_to_ulaw(linear_samples[i]);
|
||||
}
|
||||
pcmu_frame.source = __FUNCTION__;
|
||||
pcmu_frame.source = __SWITCH_FUNC__;
|
||||
pcmu_frame.data = pcmu_data;
|
||||
pcmu_frame.datalen = i;
|
||||
pcmu_frame.payload = 0;
|
||||
@@ -515,7 +515,7 @@ static switch_bool_t oreka_audio_callback(switch_media_bug_t *bug, void *user_da
|
||||
for (i = 0; i < linear_len / sizeof(int16_t); i++) {
|
||||
pcmu_data[i] = linear_to_ulaw(linear_samples[i]);
|
||||
}
|
||||
pcmu_frame.source = __FUNCTION__;
|
||||
pcmu_frame.source = __SWITCH_FUNC__;
|
||||
pcmu_frame.data = pcmu_data;
|
||||
pcmu_frame.datalen = i;
|
||||
pcmu_frame.payload = 0;
|
||||
|
||||
@@ -69,6 +69,9 @@
|
||||
#define CR_VERSION_STRING_SIZE_STR STRINGIFY(CREDIS_VERSION_STRING_SIZE)
|
||||
|
||||
#ifdef PRINTDEBUG
|
||||
#if !defined(_MSC_VER) && !defined(__FUNCTION__)
|
||||
#define __FUNCTION__ (const char *)__func__
|
||||
#endif
|
||||
/* add -DPRINTDEBUG to CPPFLAGS in Makefile for debug outputs */
|
||||
#define DEBUG(...) \
|
||||
do { \
|
||||
|
||||
Reference in new issue
Block a user