mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 10:06:33 +01:00
rollback to 3428, before the mysterious removal of libs/* at 3431/3432
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9c0d7d72d7
commit
449aab3c46
2869 changed files with 1026749 additions and 0 deletions
43
libs/glibmm2/scripts/c_std.m4
Normal file
43
libs/glibmm2/scripts/c_std.m4
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
cv_c_std_time_t_is_not_int32
|
||||
## GLIBMM_CXX_HAS_NAMESPACE_STD()
|
||||
##
|
||||
## Test whether libstdc++ declares namespace std. For safety,
|
||||
## also check whether several randomly selected STL symbols
|
||||
## are available in namespace std.
|
||||
##
|
||||
## On success, #define GLIBMM_HAVE_NAMESPACE_STD to 1.
|
||||
##
|
||||
AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32],
|
||||
[
|
||||
AC_CACHE_CHECK(
|
||||
[whether time_t is not equivalent to gint32, meaning that it can be used for a method overload],
|
||||
[gtkmm_cv_c_std_time_t_is_not_int32],
|
||||
[
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#include <time.h>
|
||||
],[
|
||||
typedef signed int gint32;
|
||||
class Test
|
||||
{
|
||||
void something(gint32 val)
|
||||
{}
|
||||
|
||||
void something(time_t val)
|
||||
{}
|
||||
};
|
||||
],
|
||||
[gtkmm_cv_c_std_time_t_is_not_int32="yes"],
|
||||
[gtkmm_cv_c_std_time_t_is_not_int32="no"]
|
||||
)
|
||||
])
|
||||
|
||||
if test "x${gtkmm_cv_c_std_time_t_is_not_int32}" = "xyes"; then
|
||||
{
|
||||
AC_DEFINE([GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32],[1], [Defined when time_t is not equivalent to gint32, meaning that it can be used for a method overload])
|
||||
}
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue