* src/atomic_ops.h (ATOMIC_OPS_H): Add AO_ prefix.
* src/atomic_ops/generalize.h (ATOMIC_OPS_H): Likewise.
* src/atomic_ops/sysdeps/emul_cas.h (ATOMIC_OPS_H): Likewise.
* src/atomic_ops/generalize.h (ATOMIC_OPS_H): Adjust #error message.
* src/atomic_ops_malloc.h (AO_ATOMIC_H): Rename to AO_MALLOC_H.
* SOFTWARE.
*/
-#ifndef ATOMIC_OPS_H
-
-#define ATOMIC_OPS_H
+#ifndef AO_ATOMIC_OPS_H
+#define AO_ATOMIC_OPS_H
#include <assert.h>
#include <stddef.h>
#define AO_T AO_t
#define AO_TS_VAL AO_TS_VAL_t
-#endif /* ATOMIC_OPS_H */
+#endif /* !AO_ATOMIC_OPS_H */
* file must define AO_NO_DD_ORDERING.
*/
-#ifndef ATOMIC_OPS_H
-# error Atomic_ops_generalize.h should not be included directly.
+#ifndef AO_ATOMIC_OPS_H
+# error This file should not be included directly.
#endif
#if AO_CHAR_TS_T
* operate on compare_and_swap locations.
*/
-#if !defined(ATOMIC_OPS_H)
-# error This file should not be included directly.
+#ifndef AO_ATOMIC_OPS_H
+# error This file should not be included directly.
#endif
#ifndef AO_HAVE_double_t
/* Almost lock-free malloc implementation based on stack implementation. */
/* See doc/README_malloc.txt file for detailed usage rules. */
-#ifndef AO_ATOMIC_H
-#define AO_ATOMIC_H
+#ifndef AO_MALLOC_H
+#define AO_MALLOC_H
#include <stdlib.h> /* For size_t */
/* Allow use of mmpa to grow the heap. No-op on some platforms. */
void AO_malloc_enable_mmap(void);
-#endif /* !AO_ATOMIC_H */
+#endif /* !AO_MALLOC_H */