]> git.saurik.com Git - wxWidgets.git/commitdiff
WinCE doesn't declare DeleteFile at the point wxRemove is defined,
authorJulian Smart <julian@anthemion.co.uk>
Mon, 30 May 2005 13:50:23 +0000 (13:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 30 May 2005 13:50:23 +0000 (13:50 +0000)
so put it in implementation file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h
src/common/wxchar.cpp

index cf639c0437a6da5ff81612f1704721a26c7a6ff0..1d49653fd45a2d89dc0712745d10d9b0da78e9de 100644 (file)
         #ifdef __WXWINCE__
             /* carefully: wxRemove() must return 0 on success while DeleteFile()
                returns 0 on error, so don't just define one as the other */
-            inline int wxRemove(const wxChar *path)
-            {
-                return ::DeleteFile(path) == 0;
-            }
+            int wxRemove(const wxChar *path);
         #else
             #define  wxRemove    _tremove
             #define  wxRename    _trename
index 9d07b1c3fe820fdef10e0973d17b8a0771e609bc..2e186082a20c690a6d2141aacfd92b55ef31b3a6 100644 (file)
@@ -1600,3 +1600,11 @@ void *calloc( size_t num, size_t size )
 
 #endif // __WXWINCE__ <= 211
 
+#ifdef __WXWINCE__
+
+int wxRemove(const wxChar *path)
+{
+    return ::DeleteFile(path) == 0;
+}
+
+#endif