summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorreggie@mdk10.(none) <>2005-02-23 22:55:46 -0600
committerreggie@mdk10.(none) <>2005-02-23 22:55:46 -0600
commit579293a29f493b044d7bb0aede917d0f1719d01a (patch)
treecd1bfdbf7f227ea03ebe9dba639ccafb1edf86ef /sql/my_decimal.h
parentcfdf5bcdc80294b792dd5fe60750a671c0aac340 (diff)
downloadmariadb-git-579293a29f493b044d7bb0aede917d0f1719d01a.tar.gz
More changes to make 5.0.3 compile on Windows
sql_map.cc: moved include of sys/stat outside of HAVE_SYS_MMAN_H define my_decimal.h: Added define for EMBEDDED_SERVER for call to string2my_decimal mi_packrec.c: removed cast to caddr_t
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r--sql/my_decimal.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h
index b3d6b6ccde6..c02b0cb4c8b 100644
--- a/sql/my_decimal.h
+++ b/sql/my_decimal.h
@@ -244,8 +244,7 @@ int str2my_decimal(uint mask, const char *str, my_decimal *d, char **end)
int str2my_decimal(uint mask, const char *from, uint length,
CHARSET_INFO *charset, my_decimal *decimal_value);
-
-#ifdef MYSQL_SERVER
+#if defined(MYSQL_SERVER) || defined(EMBEDDED_LIBRARY)
inline
int string2my_decimal(uint mask, const String *str, my_decimal *d)
{
@@ -253,7 +252,6 @@ int string2my_decimal(uint mask, const String *str, my_decimal *d)
}
#endif
-
inline
int double2my_decimal(uint mask, double val, my_decimal *d)
{