summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-11-09 15:01:32 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-11-11 17:21:23 (GMT)
commitcb480bcf1e5cfc9f3fe5e5eaee415e1d8493f8b0 (patch)
tree7b1b55a7a0e6f0cad1268b1426ac496e818d557b
parent40afbefbfe11e5cfccd5fb53717bc9c6990956c5 (diff)
downloadQt-cb480bcf1e5cfc9f3fe5e5eaee415e1d8493f8b0.zip
Qt-cb480bcf1e5cfc9f3fe5e5eaee415e1d8493f8b0.tar.gz
Qt-cb480bcf1e5cfc9f3fe5e5eaee415e1d8493f8b0.tar.bz2
compile fix for tst_qfile on Windows CE
Changed the signature of QT_OPEN to be the same on all platforms. Reviewed-by: thartman
-rw-r--r--src/corelib/kernel/qfunctions_wince.h2
-rw-r--r--tests/auto/qfile/test/test.pro1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qfunctions_wince.h b/src/corelib/kernel/qfunctions_wince.h
index f7ca195..020a6c7 100644
--- a/src/corelib/kernel/qfunctions_wince.h
+++ b/src/corelib/kernel/qfunctions_wince.h
@@ -192,7 +192,7 @@ int qt_wince__rmdir(const char *dirname);
int qt_wince__access( const char *path, int pmode );
int qt_wince__rename( const char *oldname, const char *newname );
int qt_wince__remove( const char *name );
-int qt_wince_open( const char *filename, int oflag, int pmode );
+int qt_wince_open( const char *filename, int oflag, int pmode = 0 );
int qt_wince_stat( const char *path, struct stat *buffer );
int qt_wince__fstat( int handle, struct stat *buffer);
diff --git a/tests/auto/qfile/test/test.pro b/tests/auto/qfile/test/test.pro
index 46f63b3..faaa927 100644
--- a/tests/auto/qfile/test/test.pro
+++ b/tests/auto/qfile/test/test.pro
@@ -14,6 +14,7 @@ wince*|symbian {
}
wince* {
+ SOURCES += $$QT_SOURCE_TREE/src/corelib/kernel/qfunctions_wince.cpp # needed for QT_OPEN
DEFINES += SRCDIR=\\\"\\\"
} else:symbian {
# do not define SRCDIR at all