Project

General

Profile

Bug #2329 » ceph-gxx-atomic.patch

change the header to check - Dan Horák, 04/23/2012 11:04 AM

View differences:

ceph-0.45/src/leveldb/configure.ac 2012-04-23 19:33:27.000000000 +0200
])
AC_PROG_RANLIB
AC_MSG_CHECKING(whether compiler supports C++11 cstdatomic)
AC_MSG_CHECKING(whether compiler supports C++11 atomic)
OLD_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -std=c++0x"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <cstdatomic>
#include <atomic>
int main() {}
])], [
AC_MSG_RESULT(yes)
ceph-0.45/src/leveldb/configure 2012-04-23 18:56:43.000000000 +0200
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports C++11 cstdatomic" >&5
$as_echo_n "checking whether compiler supports C++11 cstdatomic... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports C++11 atomic" >&5
$as_echo_n "checking whether compiler supports C++11 atomic... " >&6; }
OLD_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -std=c++0x"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <cstdatomic>
#include <atomic>
int main() {}
_ACEOF
ceph-0.45/src/leveldb/port/atomic_pointer.h 2012-04-23 18:57:00.000000000 +0200
#include <stdint.h>
#ifdef LEVELDB_CSTDATOMIC_PRESENT
#include <cstdatomic>
#include <atomic>
#endif
#ifdef OS_WIN
#include <windows.h>
    (1-1/1)