From 2e08b1a367d51e20a19612b46a8c83eb2414c686 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 14 May 2002 12:28:07 +0000 Subject: [PATCH] added missing extern "C" required for Sun CC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textctrl.cpp | 4 +++- src/gtk1/textctrl.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index a655706aa5..46345f1820 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -160,7 +160,9 @@ gtk_scrollbar_changed_callback( GtkWidget *WXUNUSED(widget), wxTextCtrl *win ) extern bool wxIsInsideYield; -typedef void (*GtkDrawCallback)(GtkWidget *widget, GdkRectangle *rect); +extern "C" { + typedef void (*GtkDrawCallback)(GtkWidget *widget, GdkRectangle *rect); +} static GtkDrawCallback gs_gtk_text_draw = NULL; diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index a655706aa5..46345f1820 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -160,7 +160,9 @@ gtk_scrollbar_changed_callback( GtkWidget *WXUNUSED(widget), wxTextCtrl *win ) extern bool wxIsInsideYield; -typedef void (*GtkDrawCallback)(GtkWidget *widget, GdkRectangle *rect); +extern "C" { + typedef void (*GtkDrawCallback)(GtkWidget *widget, GdkRectangle *rect); +} static GtkDrawCallback gs_gtk_text_draw = NULL; -- 2.45.2