]> git.saurik.com Git - wxWidgets.git/commitdiff
define wxGetenv() for WinCE which doesn't have _tgetenv() to always return NULL
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Mar 2005 19:14:53 +0000 (19:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Mar 2005 19:14:53 +0000 (19:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index 54bab1f6ea630f87d8ef2d83769b09529c2bee46..6e5017ab7ebfdf54199b8f64e0ec003c910512b2 100644 (file)
     #define  wxAtoi      _ttoi
     #define  wxAtol      _ttol
     /* #define  wxAtof   _tttof -- notice that there is no such thing (why?) */
-    #define  wxGetenv    _tgetenv
+    /* there are no env vars at all under CE, so no _tgetenv neither */
+    #ifdef __WXWINCE__
+        inline wxChar *wxGetenv(const wxChar *) { return NULL; }
+    #else
+        #define  wxGetenv    _tgetenv
+    #endif
     #define  wxSystem    _tsystem
 
     /* time.h functions */