diff options
author | unknown <jani@hynda.mysql.fi> | 2008-02-27 16:46:32 +0200 |
---|---|---|
committer | unknown <jani@hynda.mysql.fi> | 2008-02-27 16:46:32 +0200 |
commit | bfbea4f4b40948621213aad712781b64cc80186f (patch) | |
tree | 62bd6b18ff3b4c12d2ed3f7e4b77b8f6ee45be4f /include/my_global.h | |
parent | 977edd0c8424dd2ee3ab743ef5b6ef16b770bb49 (diff) | |
parent | e265b62b52c4fc4c1fbc0724bf4538ddaaf59a35 (diff) | |
download | mariadb-git-bfbea4f4b40948621213aad712781b64cc80186f.tar.gz |
Merge hynda.mysql.fi:/home/my/mysql-5.1-main
into hynda.mysql.fi:/home/my/mysql-5.1-marvel
BitKeeper/etc/ignore:
auto-union
client/mysqldump.c:
Auto merged
client/mysqltest.c:
Auto merged
include/my_global.h:
Auto merged
include/my_sys.h:
Auto merged
sql/handler.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/set_var.cc:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_plugin.cc:
Auto merged
storage/myisam/mi_check.c:
Auto merged
storage/myisam/mi_dynrec.c:
Auto merged
storage/myisam/mi_write.c:
Auto merged
storage/myisam/myisamdef.h:
Auto merged
storage/myisam/myisampack.c:
Auto merged
sql/mysqld.cc:
Manual merge with main 5.1 tree.
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index ab960a9e6cd..e4b8496f4c2 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -242,6 +242,8 @@ #endif #undef inline_test_2 #undef inline_test_1 +/* helper macro for "instantiating" inline functions */ +#define STATIC_INLINE static inline /* The following macros are used to control inlining a bit more than @@ -1015,6 +1017,8 @@ typedef long long intptr; #error sizeof(void *) is neither sizeof(int) nor sizeof(long) nor sizeof(long long) #endif +#define MY_ERRPTR ((void*)(intptr)1) + #ifdef USE_RAID /* The following is done with a if to not get problems with pre-processors @@ -1476,6 +1480,7 @@ do { doubleget_union _tmp; \ #define dlerror() "" #endif + #ifndef __NETWARE__ /* * Include standard definitions of operator new and delete. @@ -1506,6 +1511,13 @@ inline void operator delete[](void*, void*) { /* Do nothing */ } #if !defined(max) #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) +#endif +/* + Only Linux is known to need an explicit sync of the directory to make sure a + file creation/deletion/renaming in(from,to) this directory durable. +*/ +#ifdef TARGET_OS_LINUX +#define NEED_EXPLICIT_SYNC_DIR 1 #endif #if !defined(__cplusplus) && !defined(bool) |