]> git.saurik.com Git - wxWidgets.git/commitdiff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48961 c3d73ce0-8a6f...
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Thu, 27 Sep 2007 08:09:44 +0000 (08:09 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Thu, 27 Sep 2007 08:09:44 +0000 (08:09 +0000)
include/wx/platform.h
include/wx/wxcrtvararg.h

index 8bdae42935c3d76b9fb9602138435bee6a988f32..afc1f824153a5e76400047f958f393f73e4fee8e 100644 (file)
 #    define wxSTD
 #endif
 
+/* On OpenVMS with the most recent HP C++ compiler some function (i.e. wscanf)
+ * are only available in the std-namespace. (BUG???)
+ */
+#if defined(  __VMS ) && (__DECCXX_VER >= 70100000) && !defined(__STD_CFRONT) && !defined( __NONAMESPACE_STD )
+# define wxVMS_USE_STD std::
+#else
+# define wxVMS_USE_STD
+#endif
+
 /* Choose which method we will use for updating menus
  * - in OnIdle, or when we receive a wxEVT_MENU_OPEN event.
  * Presently, only Windows and GTK+ support wxEVT_MENU_OPEN.
index 9a9aa4cc5a0a2b8ac9847d36eabcf3fdace54697..2e7cf5a505d305bffba35bf415f3f1305f5796ca 100644 (file)
     int wxCRT_FscanfW(FILE *stream, const wchar_t *format, ...);
     int wxCRT_VsscanfW(const wchar_t *str, const wchar_t *format, va_list ap);
 #else
-#ifdef __VMS
-#if (__DECCXX_VER >= 70100000) && !defined(__STD_CFRONT) && !defined( __NONAMESPACE_STD )
-# define wxCRT_ScanfW     std::wscanf
-# define wxCRT_SscanfW    std::swscanf
-# define wxCRT_FscanfW    std::fwscanf
-# define wxCRT_VsscanfW   std::vswscanf
-#else
-    #define wxCRT_ScanfW     wscanf
-    #define wxCRT_SscanfW    swscanf
-    #define wxCRT_FscanfW    fwscanf
-    #define wxCRT_VsscanfW   vswscanf
-#endif
-#else
-    #define wxCRT_ScanfW     wscanf
-    #define wxCRT_SscanfW    swscanf
-    #define wxCRT_FscanfW    fwscanf
-    #define wxCRT_VsscanfW   vswscanf
-#endif
+    #define wxCRT_ScanfW     wxVMS_USE_STD wscanf
+    #define wxCRT_SscanfW    wxVMS_USE_STD swscanf
+    #define wxCRT_FscanfW    wxVMS_USE_STD fwscanf
+    #define wxCRT_VsscanfW   wxVMS_USE_STD vswscanf
 #endif
 
 // ----------------------------------------------------------------------------