]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
renamed project files for 3rd party libs from FooVC.dsp to foo.dsp
[wxWidgets.git] / src / common / utilscmn.cpp
index 348cea4272075146f1ab5c2aa373f32096d070f9..a294d53d5d93220762cfef3c11b234876d671fc3 100644 (file)
@@ -41,6 +41,7 @@
         #include "wx/menu.h"
         #include "wx/msgdlg.h"
         #include "wx/textdlg.h"
+        #include "wx/textctrl.h"    // for wxTE_PASSWORD
         #if wxUSE_ACCEL
             #include "wx/menuitem.h"
             #include "wx/accel.h"
@@ -1071,6 +1072,21 @@ bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
 
 #endif // wxUSE_GUI
 
+const wxChar *wxGetInstallPrefix()
+{
+    wxString prefix;
+    
+    if ( wxGetEnv(wxT("WX_PREFIX"), &prefix) )
+        return prefix.c_str();
+    
+#ifdef wxINSTALL_PREFIX
+    return wxT(wxINSTALL_PREFIX);
+#else 
+    return wxT("");
+#endif
+}
+
+
 // ----------------------------------------------------------------------------
 // network and user id functions
 // ----------------------------------------------------------------------------