[PATCH] __cdecl -> SAL_CALL
Christina Rossmanith
ChrRossmanith at web.de
Thu May 26 07:52:36 PDT 2011
---
io/test/testconnection.cxx | 6 +-----
sal/workben/t_random.c | 6 +-----
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/io/test/testconnection.cxx b/io/test/testconnection.cxx
index 4fddf5f..d44a4b2 100644
--- a/io/test/testconnection.cxx
+++ b/io/test/testconnection.cxx
@@ -179,11 +179,7 @@ void testConnection( const OUString &sConnectionDescription ,
}
-#if (defined UNX)
-int main( int argc, char * argv[] )
-#else
-int __cdecl main( int argc, char * argv[] )
-#endif
+int SAL_CALL main( int argc, char * argv[] )
{
Reference< XMultiServiceFactory > xMgr(
createRegistryServiceFactory( OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")) ) );
diff --git a/sal/workben/t_random.c b/sal/workben/t_random.c
index ea24cc4..56f2da5 100644
--- a/sal/workben/t_random.c
+++ b/sal/workben/t_random.c
@@ -45,11 +45,7 @@ static char *pt (unsigned char *md, int length)
/*
* main.
*/
-#ifdef WIN32
-int __cdecl main (void)
-#else
-int main (void)
-#endif
+int SAL_CALL main (void)
{
rtlRandomPool pool;
pool = rtl_random_createPool();
--
1.7.4.1
--------------080602030602070101080504
Content-Type: text/x-patch;
name="0001-__cdecl-SAL_CALL.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-__cdecl-SAL_CALL.patch"
More information about the LibreOffice
mailing list