summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:18:36 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:18:36 -0300
commit152df97da133fe598ecb568f234fde2fd66e4d64 (patch)
treee39190b7222d99ca43735545cd66a9090e96e4ee /include/my_global.h
parente81506971f2c465f583e3f6f23857f50a88c48de (diff)
downloadmariadb-git-152df97da133fe598ecb568f234fde2fd66e4d64.tar.gz
WL#5498: Remove dead and unused source code
Remove wrappers around inline -- static inline is used without wrappers throughout the source code. We rely on the compiler or linker to eliminate unused static functions.
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 3cadd1b89e5..1c615cc5ca2 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -198,22 +198,6 @@
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
-/*
- now let's figure out if inline functions are supported
- autoconf defines 'inline' to be empty, if not
-*/
-#define inline_test_1(X) X ## 1
-#define inline_test_2(X) inline_test_1(X)
-#if inline_test_2(inline) != 1
-#define HAVE_INLINE
-#else
-#warning No "inline" support in C, all "static inline" functions will be instantiated in every .o file!!!
-#endif
-#undef inline_test_2
-#undef inline_test_1
-/* helper macro for "instantiating" inline functions */
-#define STATIC_INLINE static inline
-
/* Fix problem with S_ISLNK() on Linux */
#if defined(TARGET_OS_LINUX) || defined(__GLIBC__)
#undef _GNU_SOURCE
@@ -323,10 +307,6 @@ C_MODE_END
#undef HAVE_PREAD
#undef HAVE_PWRITE
#endif
-#if defined(HAVE_BROKEN_INLINE) && !defined(__cplusplus)
-#undef inline
-#define inline
-#endif
#ifdef UNDEF_HAVE_GETHOSTBYNAME_R /* For OSF4.x */
#undef HAVE_GETHOSTBYNAME_R