fixes for the compilation warnings with Sun CC:
1. some fixes for "String literal to char * conversion" warnings (many more left in the *.xpm files) 2. fixes for "assignment of function to extern "C" function" 3. a few other miscellaneous ones git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,16 +235,19 @@ typedef int wxWindowID;
|
||||
#define wxCALLBACK
|
||||
#endif // platform
|
||||
|
||||
// callling convention for the qsort(3) callback
|
||||
// generic calling convention for the extern "C" functions
|
||||
|
||||
#if defined(__VISUALC__)
|
||||
#define wxCMPFUNC_CONV _cdecl
|
||||
#define wxC_CALLING_CONV _cdecl
|
||||
#elif defined(__VISAGECPP__)
|
||||
#define wxCMPFUNC_CONV _Optlink
|
||||
#define wxC_CALLING_CONV _Optlink
|
||||
#else // !Visual C++
|
||||
#define wxCMPFUNC_CONV
|
||||
#define wxC_CALLING_CONV
|
||||
#endif // compiler
|
||||
|
||||
// callling convention for the qsort(3) callback
|
||||
#define wxCMPFUNC_CONV wxC_CALLING_CONV
|
||||
|
||||
// compatibility :-(
|
||||
#define CMPFUNC_CONV wxCMPFUNC_CONV
|
||||
|
||||
|
Reference in New Issue
Block a user