ICU-4078 Make sure the cleanup function definition works in C++

X-SVN-Rev: 16306
This commit is contained in:
George Rhoten 2004-09-12 22:54:50 +00:00
parent 6fe68cb5ba
commit 8066f2dfe3

View File

@ -57,7 +57,9 @@ typedef enum ECleanupLibraryType {
UCLN_COMMON /* This must be the last one to cleanup. */
} ECleanupLibraryType;
typedef UBool cleanupFunc(void);
U_CDECL_BEGIN
typedef UBool U_CALLCONV cleanupFunc(void);
U_CDECL_END
U_CAPI void U_EXPORT2 ucln_registerCleanup(ECleanupLibraryType type,
cleanupFunc *func);