X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f5e2c177cb3f004d676303ad9accb347d882570..cde948b4db45371b37a149da384db5a217947a6c:/include/wx/wxchar.h

diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h
index a2d0492081..dd6e3851c2 100644
--- a/include/wx/wxchar.h
+++ b/include/wx/wxchar.h
@@ -372,7 +372,7 @@
     /* there are no env vars at all under CE, so no _tgetenv neither */
     #ifdef __WXWINCE__
         /* can't define as inline function as this is a C file... */
-        #define wxGetenv(name)  NULL
+        #define wxGetenv(name)  ((wxChar *)NULL)
     #else
         #define  wxGetenv    _tgetenv
     #endif