Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
b8304fc7
Commit
b8304fc7
authored
Jul 14, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add __func__ test if apps want it
svn path=/icecast/trunk/m4/; revision=7123
parent
a07c996f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
m4/xiph_compiler.m4
m4/xiph_compiler.m4
+19
-1
No files found.
m4/xiph_compiler.m4
View file @
b8304fc7
dnl xiph_compiler.m4
dnl $Id
: xiph_compiler.m4,v 1.5 2003/07/17 09:23:44 karl Exp
$
dnl $Id$
dnl XIPH_FUNC_VA_COPY
dnl Karl Heyes
...
...
@@ -166,3 +166,21 @@ EOF
done
$1="$xt_filtered $$1"
])dnl XIPH_VAR_PREPEND
dnl XIPH_C__FUNC__
dnl Karl Heyes <karl@xiph.org> 07/2004
AC_DEFUN([XIPH_C__FUNC__],
[dnl
AC_MSG_CHECKING([for __func__])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[const char *x = __func__;])],
[ AC_MSG_RESULT([yes])],
[ AH_TEMPLATE([__func__], [Replace __func__ if not supported])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[const char *x = __FUNCTION__;])],
[ AC_DEFINE([__func__],[__FUNCTION__])
AC_MSG_RESULT([yes])],
[ AC_DEFINE([__func__],[""])
AC_MSG_RESULT([no])
])
])
])dnl XIPH_C__FUNC__
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment