boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / libatomic_ops-1.2 / src / atomic_ops / sysdeps / generic_pthread.h
index 8d17c0a1f0730463750ee228c0b6763decd6320e..b38367fe42224fbb4afaeeb02715a46ec9864f71 100644 (file)
@@ -38,7 +38,7 @@
 extern pthread_mutex_t AO_pt_lock;
 
 AO_INLINE void
-AO_nop_full()
+AO_nop_full(void)
 {
   pthread_mutex_lock(&AO_pt_lock);
   pthread_mutex_unlock(&AO_pt_lock);
@@ -47,7 +47,7 @@ AO_nop_full()
 #define AO_HAVE_nop_full
 
 AO_INLINE AO_t
-AO_load_full(volatile AO_t *addr)
+AO_load_full(const volatile AO_t *addr)
 {
   AO_t result;
   pthread_mutex_lock(&AO_pt_lock);
@@ -69,7 +69,7 @@ AO_store_full(volatile AO_t *addr, AO_t val)
 #define AO_HAVE_store_full
 
 AO_INLINE unsigned char
-AO_char_load_full(volatile unsigned char *addr)
+AO_char_load_full(const volatile unsigned char *addr)
 {
   unsigned char result;
   pthread_mutex_lock(&AO_pt_lock);
@@ -91,7 +91,7 @@ AO_char_store_full(volatile unsigned char *addr, unsigned char val)
 #define AO_HAVE_char_store_full
 
 AO_INLINE unsigned short
-AO_short_load_full(volatile unsigned short *addr)
+AO_short_load_full(const volatile unsigned short *addr)
 {
   unsigned short result;
   pthread_mutex_lock(&AO_pt_lock);
@@ -113,7 +113,7 @@ AO_short_store_full(volatile unsigned short *addr, unsigned short val)
 #define AO_HAVE_short_store_full
 
 AO_INLINE unsigned int
-AO_int_load_full(volatile unsigned int *addr)
+AO_int_load_full(const volatile unsigned int *addr)
 {
   unsigned int result;
   pthread_mutex_lock(&AO_pt_lock);