]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/bitmap.cpp
Don't compile with < GTK 2.4
[wxWidgets.git] / src / x11 / bitmap.cpp
index 2af78decca5f1d4caf8047979cdb6e2841cfb3e4..ba6ebacd0e477960cc7b83db4d9e90107f130963 100644 (file)
@@ -1359,7 +1359,7 @@ bool wxXPMFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name,
     Pixmap mask = 0;
 
     int ErrorStatus = XpmReadFileToPixmap( xdisplay, xroot,
-                                           (char*) name.c_str(),
+                                           (char*) ((const char*) name.c_str()),
                                            &pixmap, &mask, &xpmAttr);
 
     if (ErrorStatus == XpmSuccess)