Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-libshout
Commits
2e2da86e
Commit
2e2da86e
authored
Jul 14, 2004
by
Karl Heyes
Browse files
Add __func__ test if apps want it
svn path=/icecast/trunk/m4/; revision=7123
parent
b16a3dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
m4/xiph_compiler.m4
View file @
2e2da86e
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