Signed-off-by: Sage Weil <sage@newdream.net>
# include "acconfig.h"
#endif
-/*
- * atomic_ops.h includes the system assert.h, which will redefine
- * 'assert' even if it's already been included. so, make sure we
- * include atomic_ops.h first so that we don't get an #include
- * <assert.h> again later.
- */
-#ifndef NO_ATOMIC_OPS
-# include "atomic_ops.h"
-#endif
-
struct CephContext;
#ifdef __cplusplus
#endif
#ifndef NO_ATOMIC_OPS
-//libatomic_ops implementation
+
+// libatomic_ops implementation
#include <atomic_ops.h>
+// reinclude our assert to clobber the system one
+#include "include/assert.h"
+
namespace ceph {
class atomic_t {
AO_t val;