From 54849816937ce9aab64f07ab1072d4d787f64b28 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 1 Sep 2008 10:19:06 +0000 Subject: [PATCH] Removed std:: from in front of strcmp and added a string.h --- examples/osgviewerGTK/osgviewerGTK.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/osgviewerGTK/osgviewerGTK.cpp b/examples/osgviewerGTK/osgviewerGTK.cpp index 03f5999f5..8c77071d5 100644 --- a/examples/osgviewerGTK/osgviewerGTK.cpp +++ b/examples/osgviewerGTK/osgviewerGTK.cpp @@ -1,3 +1,5 @@ +#include + #include #include #include @@ -50,9 +52,9 @@ class ExampleOSGGTKDrawingArea : public OSGGTKDrawingArea { GTK_LABEL(gtk_bin_get_child(GTK_BIN(widget))) ); - if(not std::strncmp(text, "Close", 5)) gtk_main_quit(); + if(not strncmp(text, "Close", 5)) gtk_main_quit(); - else if(not std::strncmp(text, "Open File", 9)) { + else if(not strncmp(text, "Open File", 9)) { GtkWidget* of = gtk_file_chooser_dialog_new( "Please select an OSG file...", GTK_WINDOW(gtk_widget_get_toplevel(getWidget())),