samples/config/contest.cpp compilation on VMS
Bug fix for "double home directory in fileconf.cpp
Modified Files:
wxWindows/descrip.mms wxWindows/src/common/fileconf.cpp
Added Files:
wxWindows/samples/config/conftest.opt
wxWindows/samples/config/descrip.mms
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4652
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
$(MMS)$(MMSQUALIFIERS)
set default [-.checklst]
$(MMS)$(MMSQUALIFIERS)
+ set default [-.config]
+ $(MMS)$(MMSQUALIFIERS)
set default [-.dialogs]
$(MMS)$(MMSQUALIFIERS)
set default [-.image]
--- /dev/null
+[--.lib]libwx_motif.olb/lib
+sys$library:decw$xlibshr.exe/share
+sys$library:decw$xtlibshrr5.exe/share
+sys$library:decw$xmlibshr12.exe/share
+sys$library:decw$xmulibshrr5.exe/share
+X11:libxpm.olb/lib
--- /dev/null
+#*****************************************************************************
+# *
+# Make file for VMS *
+# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
+# Date : 10 November 1999 *
+# *
+#*****************************************************************************
+.first
+ define wx [--.include.wx]
+
+.ifdef __WXMOTIF__
+CXX_DEFINE = /define=(__WXMOTIF__=1)
+.else
+CXX_DEFINE =
+.endif
+
+.suffixes : .cpp
+
+.cpp.obj :
+ cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp
+
+all :
+ $(MMS)$(MMSQUALIFIERS) conftest.exe
+
+conftest.exe : conftest.obj
+.ifdef __WXMOTIF__
+ cxxlink conftest,conftest/opt
+.endif
+
+conftest.obj : conftest.cpp
{
wxString strDir;
- #ifdef __UNIX__
+ #ifdef __VMS__ // Note if __VMS is defined __UNIX is also defined
+ strDir = wxT("sys$manager:");
+ #elif defined( __UNIX__ )
strDir = wxT("/etc/");
#elif defined(__WXPM__)
ULONG aulSysInfo[QSV_MAX] = {0};
#ifndef __WXMAC__
wxGetHomeDir(&strDir);
-#ifdef __UNIX__
+#ifndef __VMS__
+# ifdef __UNIX__
if (strDir.Last() != wxT('/')) strDir << wxT('/');
#else
if (strDir.Last() != wxT('\\')) strDir << wxT('\\');
#endif
+#endif
#else
// no local dir concept on mac
return GetGlobalDir() ;
wxString wxFileConfig::GetLocalFileName(const wxChar *szFile)
{
- wxString str = GetLocalDir();
-
+#ifdef __VMS__ // On VMS I saw the problem that the home directory was appended
+ // twice for the configuration file. Does that also happen for other
+ // platforms?
+ wxString str = wxT( ' ' );
+#else
+ wxString str = GetLocalDir();
+#endif
+
#ifdef __UNIX__
str << wxT('.');
#endif