summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-04-16 23:36:31 +0300
committerTor Lillqvist <tml@iki.fi>2012-04-17 00:28:45 +0300
commit5c61f5d8948cae3e8251f38359c2da4e29c32c4e (patch)
tree5ea88c47f1ac7e9da4ea5af5695a502bef40e268 /scaddins
parentcfdeb0895a0284c3d38eed4143809b9ad39d798c (diff)
Deduplicate some functions for iOS static linking (DISABLE_DYNLOADING)
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysishelper.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 82b5db3d8471..136a6e385f64 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -58,6 +58,23 @@ class ScaAnyConverter;
inline sal_Bool IsLeapYear( sal_uInt16 nYear );
+
+#ifdef DISABLE_DYNLOADING
+
+// Avoid clash with the functions with same name in
+// scaddins/source/datefunc/datefunc.cxx. I am not sure if each pair
+// have identical semantics, but if yes, one copy should be enough,
+// but what would be a suitable library where such functions could go?
+// Or can the analysis library depend on the date library or the other
+// way around?
+
+#define DaysInMonth analysishelper_DaysInMonth
+#define DateToDays analysishelper_DateToDays
+#define DaysToDate analysishelper_DaysToDate
+#define GetNullDate analysishelper_GetNullDate
+
+#endif
+
sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear );
sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear );
void DaysToDate( sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth, sal_uInt16& rYear ) throw( ::com::sun::star::lang::IllegalArgumentException );