From 7f1eac149d76f33770f54b20fe7cd27a4e4b09d4 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Wed, 7 Apr 2010 16:11:44 +1000 Subject: Build on Windows. --- src/declarative/qml/qdeclarativevme.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/declarative/qml/qdeclarativevme.cpp b/src/declarative/qml/qdeclarativevme.cpp index 0117880..2d1a549 100644 --- a/src/declarative/qml/qdeclarativevme.cpp +++ b/src/declarative/qml/qdeclarativevme.cpp @@ -246,7 +246,12 @@ QObject *QDeclarativeVME::run(QDeclarativeVMEStack &stack, { QObject *o = (QObject *)operator new(instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData)); - ::bzero(o, instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData)); +#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE) + ::memset(o, 0, instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData)); +#else + // faster than memset + ::bzero(o, instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData)); +#endif instr.createSimple.create(o); QDeclarativeDeclarativeData *ddata = -- cgit v0.12