]> git.saurik.com Git - wxWidgets.git/commitdiff
clipboard handler must be extern C (Sun CC warning)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Sep 2005 16:36:50 +0000 (16:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Sep 2005 16:36:50 +0000 (16:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/clipbrd.cpp

index 2b795bae13e791f8513a71faa2b60ab174d6c2a6..7b13ed0d2bfac3076ea3ecad3c7f3bc92673214b 100644 (file)
@@ -176,13 +176,16 @@ struct wxDataIdToDataObject
 WX_DEFINE_LIST(wxDataObjectList);
 WX_DEFINE_LIST(wxDataIdToDataObjectList);
 
+extern "C"
+{
 #if wxCHECK_LESSTIF()
 static void wxClipboardCallback( Widget widget, int* data_id,
                                  int* priv, int* reason );
-#else
+#else // Motif
 static void wxClipboardCallback( Widget widget, long* data_id,
                                  long* priv, int* reason );
-#endif
+#endif // Less/Motif
+}
 
 IMPLEMENT_DYNAMIC_CLASS(wxClipboard,wxObject)