[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at yahoo.com
Sun Nov 15 09:00:34 CET 2009
SVN commit 1049365 by kuemmel:
Don't use atof from msvc runtime library, it is too slow.
Use old BSD implementation of atof for Windows.
M +5 -0 ascii.cpp
M +1 -0 ascii.pro
AM kst_atof.cpp [License: UNKNOWN]
AM kst_atof.h [License: UNKNOWN]
--- branches/work/kst/portto4/kst/src/datasources/ascii/ascii.cpp #1049364:1049365
@@ -40,6 +40,11 @@
#include "ui_asciiconfig.h"
#include "kst_i18n.h"
+#ifdef Q_OS_WIN
+#include "kst_atof.h"
+#define atof kst_atof
+#endif
+
#define DEFAULT_DELIMITERS "#/c!;"
#define DEFAULT_COLUMN_WIDTH 16
--- branches/work/kst/portto4/kst/src/datasources/ascii/ascii.pro #1049364:1049365
@@ -3,6 +3,7 @@
TARGET = kst2data_ascii
INCLUDEPATH += $$OUTPUT_DIR/src/datasources/ascii/tmp
SOURCES += ascii.cpp
+win32:SOURCES += kst_atof.cpp
HEADERS += ascii.h \
../../libkst/kst_inf.h
FORMS += asciiconfig.ui
** branches/work/kst/portto4/kst/src/datasources/ascii/kst_atof.cpp #property svn:eol-style
+ native
** branches/work/kst/portto4/kst/src/datasources/ascii/kst_atof.h #property svn:eol-style
+ native
More information about the Kst
mailing list