Changeset 99


Ignore:
Timestamp:
Jul 21, 2006, 9:24:43 PM (19 years ago)
Author:
dmik
Message:

Plugin Support: Fixed: Q_EXPORT_PLUGIN and Q_EXPORT_COMPONENT macros procudced entry points with underscores, but resolved them without. Now, entry points use the _System decl to prevent underscores at all.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/qgplugin.h

    r2 r99  
    9191        }
    9292
    93 #    ifdef Q_WS_WIN
     93#    if defined(Q_WS_WIN)
    9494#       ifdef Q_CC_BOR
    9595#           define Q_EXPORT_PLUGIN(PLUGIN) \
     
    110110                Q_PLUGIN_INSTANTIATE( PLUGIN )
    111111#       endif
     112#    elif defined(Q_OS_OS2)
     113#       define Q_EXPORT_PLUGIN(PLUGIN) \
     114            Q_PLUGIN_VERIFICATION_DATA \
     115            Q_EXTERN_C \
     116            const char * _System qt_ucm_query_verification_data() \
     117            { return qt_ucm_verification_data; } \
     118            Q_EXTERN_C QUnknownInterface * _System ucm_instantiate() \
     119            Q_PLUGIN_INSTANTIATE( PLUGIN )
    112120#    else
    113121#       define Q_EXPORT_PLUGIN(PLUGIN) \
  • trunk/src/tools/qcom_p.h

    r2 r99  
    305305#endif // Q_CREATE_INSTANCE
    306306
    307 #    ifdef Q_WS_WIN
     307#    if defined(Q_WS_WIN)
    308308#       ifdef Q_CC_BOR
    309309#           define Q_EXPORT_COMPONENT() \
     
    322322                Q_EXTERN_C __declspec(dllexport) QUnknownInterface* ucm_instantiate()
    323323#       endif
     324#    elif defined(Q_OS_OS2)
     325#       define Q_EXPORT_COMPONENT() \
     326            Q_UCM_VERIFICATION_DATA \
     327            Q_EXTERN_C \
     328            const char * _System qt_ucm_query_verification_data() \
     329            { return qt_ucm_verification_data; } \
     330            Q_EXTERN_C QUnknownInterface * _System ucm_instantiate()
    324331#    else
    325332#       define Q_EXPORT_COMPONENT() \
  • trunk/src/tools/qcomlibrary.cpp

    r2 r99  
    437437        }
    438438
    439 #  ifdef Q_CC_BOR
     439#  if defined(Q_CC_BOR)
    440440        typedef const char * __stdcall (*UCMQueryVerificationDataProc)();
     441#  elif defined(Q_OS_OS2)
     442        typedef const char * _System (*UCMQueryVerificationDataProc)();
    441443#  else
    442444        typedef const char * (*UCMQueryVerificationDataProc)();
     
    490492#ifdef Q_CC_BOR
    491493    typedef QUnknownInterface* __stdcall (*UCMInstanceProc)();
     494#elif defined(Q_OS_OS2)
     495    typedef QUnknownInterface* _System (*UCMInstanceProc)();
    492496#else
    493497    typedef QUnknownInterface* (*UCMInstanceProc)();
Note: See TracChangeset for help on using the changeset viewer.