diff options
Diffstat (limited to 'rsc/source/parser/rsckey.cxx')
-rw-r--r-- | rsc/source/parser/rsckey.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/rsc/source/parser/rsckey.cxx b/rsc/source/parser/rsckey.cxx index e6e1559a4130..621ab4d69598 100644 --- a/rsc/source/parser/rsckey.cxx +++ b/rsc/source/parser/rsckey.cxx @@ -45,18 +45,11 @@ /****************** C o d e **********************************************/ /****************** keyword sort function ********************************/ extern "C" { -#if defined( WNT ) && !defined (ICC) - int _cdecl KeyCompare( const void * pFirst, const void * pSecond ); -#else - int KeyCompare( const void * pFirst, const void * pSecond ); -#endif + int SAL_CALL KeyCompare( const void * pFirst, const void * pSecond ); } -#if defined( WNT ) && !defined(ICC) -int _cdecl KeyCompare( const void * pFirst, const void * pSecond ){ -#else -int KeyCompare( const void * pFirst, const void * pSecond ){ -#endif +int SAL_CALL KeyCompare( const void * pFirst, const void * pSecond ) +{ if( ((KEY_STRUCT *)pFirst)->nName > ((KEY_STRUCT *)pSecond)->nName ) return( 1 ); else if( ((KEY_STRUCT *)pFirst)->nName < ((KEY_STRUCT *)pSecond)->nName ) |