Below is the list of changes that have just been committed into a local
5.1 repository of jani. When jani does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-10-16 17:59:16+03:00, jani@stripped +3 -0
Fixes to merge between 5.1-main and 5.1-marvel
include/my_atomic.h@stripped, 2007-10-16 17:59:14+03:00, jani@stripped +5 -5
To avoid compiler problems on some platforms, static inline
should be a macro here.
include/my_bit.h@stripped, 2007-10-16 17:59:14+03:00, jani@stripped +4 -2
To avoid compiler problems on windows and solaris
libmysql/CMakeLists.txt@stripped, 2007-10-16 17:59:14+03:00, jani@stripped +1 -1
Added missing library on Windows.
diff -Nrup a/include/my_atomic.h b/include/my_atomic.h
--- a/include/my_atomic.h 2007-01-28 22:12:55 +02:00
+++ b/include/my_atomic.h 2007-10-16 17:59:14 +03:00
@@ -35,7 +35,7 @@
#ifdef HAVE_INLINE
#define make_atomic_add(S) \
-static inline int ## S my_atomic_add ## S( \
+STATIC_INLINE int ## S my_atomic_add ## S( \
int ## S volatile *a, int ## S v) \
{ \
make_atomic_add_body(S); \
@@ -43,7 +43,7 @@ static inline int ## S my_atomic_add ##
}
#define make_atomic_swap(S) \
-static inline int ## S my_atomic_swap ## S( \
+STATIC_INLINE int ## S my_atomic_swap ## S( \
int ## S volatile *a, int ## S v) \
{ \
make_atomic_swap_body(S); \
@@ -51,7 +51,7 @@ static inline int ## S my_atomic_swap ##
}
#define make_atomic_cas(S) \
-static inline int my_atomic_cas ## S(int ## S volatile *a, \
+STATIC_INLINE int my_atomic_cas ## S(int ## S volatile *a, \
int ## S *cmp, int ## S set) \
{ \
int8 ret; \
@@ -60,7 +60,7 @@ static inline int my_atomic_cas ## S(int
}
#define make_atomic_load(S) \
-static inline int ## S my_atomic_load ## S(int ## S volatile *a) \
+STATIC_INLINE int ## S my_atomic_load ## S(int ## S volatile *a) \
{ \
int ## S ret; \
make_atomic_load_body(S); \
@@ -68,7 +68,7 @@ static inline int ## S my_atomic_load ##
}
#define make_atomic_store(S) \
-static inline void my_atomic_store ## S( \
+STATIC_INLINE void my_atomic_store ## S( \
int ## S volatile *a, int ## S v) \
{ \
make_atomic_store_body(S); \
diff -Nrup a/include/my_bit.h b/include/my_bit.h
--- a/include/my_bit.h 2007-10-11 18:07:37 +03:00
+++ b/include/my_bit.h 2007-10-16 17:59:14 +03:00
@@ -2,6 +2,7 @@
Some useful bit functions
*/
+C_MODE_START
#ifdef HAVE_INLINE
extern const char _my_bits_nbits[256];
@@ -97,11 +98,12 @@ STATIC_INLINE uint32 my_reverse_bits(uin
_my_bits_reverse_table[(key>>24) ];
}
-#else
+#else /* HAVE_INLINE */
extern uint my_bit_log2(ulong value);
extern uint32 my_round_up_to_next_power(uint32 v);
uint32 my_clear_highest_bit(uint32 v);
uint32 my_reverse_bits(uint32 key);
extern uint my_count_bits(ulonglong v);
extern uint my_count_bits_ushort(ushort v);
-#endif
+#endif /* HAVE_INLINE */
+C_MODE_END
diff -Nrup a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt
--- a/libmysql/CMakeLists.txt 2007-08-07 00:14:46 +03:00
+++ b/libmysql/CMakeLists.txt 2007-10-16 17:59:14 +03:00
@@ -98,7 +98,7 @@ SET(CLIENT_SOURCES ../mysys/array.c ..
../strings/strtoll.c ../strings/strtoull.c ../strings/strxmov.c ../strings/strxnmov.c
../mysys/thr_mutex.c ../mysys/typelib.c ../vio/vio.c ../vio/viosocket.c
../vio/viossl.c ../vio/viosslfactories.c ../strings/xml.c
- ../mysys/my_getsystime.c ${LIB_SOURCES})
+ ../mysys/my_getsystime.c ../mysys/my_sync.c ${LIB_SOURCES})
# Need to set USE_TLS for building the DLL, since __declspec(thread)
# approach to thread local storage does not work properly in DLLs.
| Thread |
|---|
| • bk commit into 5.1 tree (jani:1.2576) | jani | 16 Oct |